Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
MoodleODSWorkbook Class Reference

ODS workbook abstraction. More...

Public Member Functions

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

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: