Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
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: