Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Protected Attributes | List of all members
MoodleODSWorkbook Class Reference

ODS workbook abstraction. More...

Public Member Functions

 __construct ($filename)
 
 add_format ($properties=array())
 Create one Moodle Format. More...
 
 add_worksheet ($name='')
 Create one Moodle Worksheet. More...
 
 close ()
 Close the Moodle Workbook.
 
 send ($filename)
 Not required to use. More...
 

Protected Attributes

 $filename
 
 $worksheets = array()
 

Detailed Description

ODS workbook abstraction.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ add_format()

MoodleODSWorkbook::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!
Return values
MoodleODSFormat

◆ add_worksheet()

MoodleODSWorkbook::add_worksheet (   $name = '')

Create one Moodle Worksheet.

Parameters
string$nameName of the sheet
Return values
MoodleODSWorksheet

◆ send()

MoodleODSWorkbook::send (   $filename)

Not required to use.

Parameters
string$filenameName of the downloaded file

The documentation for this class was generated from the following file: