Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 310 and 400] [Versions 311 and 400] [Versions 39 and 400] [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]

(no description)

File Size: 784 lines (34 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: Ods  - X-Ref

__construct()   X-Ref
Create a new Ods Reader instance.


canRead(string $filename)   X-Ref
Can the current IReader read the file?


listWorksheetNames($filename)   X-Ref
Reads names of the worksheets from a file, without parsing the whole file to a PhpSpreadsheet object.

return: string[]
param: string $filename

listWorksheetInfo($filename)   X-Ref
Return worksheet info (Name, Last Column Letter, Last Column Index, Total Rows, Total Columns).

return: array
param: string $filename

load(string $filename, int $flags = 0)   X-Ref
Loads PhpSpreadsheet from file.

return: Spreadsheet

loadIntoExisting($filename, Spreadsheet $spreadsheet)   X-Ref
Loads PhpSpreadsheet from file into PhpSpreadsheet instance.

return: Spreadsheet
param: string $filename

processSettings(ZipArchive $zip, Spreadsheet $spreadsheet)   X-Ref
No description

lookForActiveSheet(DOMElement $settings, Spreadsheet $spreadsheet, string $configNs)   X-Ref
No description

lookForSelectedCells(DOMElement $settings, Spreadsheet $spreadsheet, string $configNs)   X-Ref
No description

setSelected(Spreadsheet $spreadsheet, string $wsname, string $setCol, string $setRow)   X-Ref
No description

scanElementForText(DOMNode $element)   X-Ref
Recursively scan element.

return: string

parseRichText($is)   X-Ref

return: RichText
param: string $is

convertToExcelFormulaValue(string $openOfficeFormula)   X-Ref
No description