Moodle  2.2.1
http://www.collinsharper.com
MoodleExcelWorkbook Class Reference

Public Member Functions

 MoodleExcelWorkbook ($filename)
add_worksheet ($name= '')
add_format ($properties=array())
 close ()
 send ($filename)

Data Fields

 $pear_excel_workbook
 $latin_output

Detailed Description

Definition at line 43 of file excellib.class.php.


Member Function Documentation

& add_format ( properties = array())

Create one Moodle Format

Parameters:
array$propertiesarray of properties [name]=value; valid names are set_XXXX existing functions without the set_ part i.e: [bold]=1 for set_bold(1)...Optional!
Returns:
object MoodleExcelFormat

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

Parameters:
string$nameName of the sheet
Returns:
object MoodleExcelWorksheet

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

Parameters:
string$filenameThe 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.

Here is the call graph for this function:

send ( filename)

Write the correct HTTP headers

Parameters:
string$filenameName of the downloaded file

Definition at line 110 of file excellib.class.php.


Field Documentation

$latin_output

Definition at line 47 of file excellib.class.php.

$pear_excel_workbook

Definition at line 45 of file excellib.class.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations