|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| MoodleExcelWorkbook ($filename) | |
| & | add_worksheet ($name= '') |
| & | add_format ($properties=array()) |
| close () | |
| send ($filename) | |
Data Fields | |
| $pear_excel_workbook | |
| $latin_output | |
Definition at line 43 of file excellib.class.php.
| & add_format | ( | $ | properties = array() | ) |
Create one Moodle Format
| array | $properties | array of properties [name]=value; valid names are set_XXXX existing functions without the set_ part i.e: [bold]=1 for set_bold(1)...Optional! |
Create the Moodle Format. Returns one pointer to it
Definition at line 92 of file excellib.class.php.
| & add_worksheet | ( | $ | name = '' | ) |
Create one Moodle Worksheet
| string | $name | Name of the sheet |
Create the Moodle Worksheet. Returns one pointer to it
Definition at line 77 of file excellib.class.php.
| close | ( | ) |
Close the Moodle Workbook
Definition at line 101 of file excellib.class.php.
| MoodleExcelWorkbook | ( | $ | filename | ) |
Constructs one Moodle Workbook.
object
| string | $filename | The name of the file |
Internally, create one PEAR Spreadsheet_Excel_Writer_Workbook class
Prepare it to accept UTF-16LE data and to encode it properly
Only if don't want to use latin (win1252) stronger output
We want latin (win1252) output
Choose our temporary directory - see MDL-7176, found by paulo.matos
Definition at line 55 of file excellib.class.php.

| send | ( | $ | filename | ) |
Write the correct HTTP headers
| string | $filename | Name of the downloaded file |
Definition at line 110 of file excellib.class.php.
| $latin_output |
Definition at line 47 of file excellib.class.php.
| $pear_excel_workbook |
Definition at line 45 of file excellib.class.php.