Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

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

(no description)

File Size: 795 lines (35 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($pFilename)   X-Ref
Can the current IReader read the file?

param: string $pFilename
return: bool

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

param: string $pFilename
return: string[]

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

param: string $pFilename
return: array

load($pFilename)   X-Ref
Loads PhpSpreadsheet from file.

param: string $pFilename
return: Spreadsheet

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

param: string $pFilename
return: Spreadsheet

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

return: string

parseRichText($is)   X-Ref

param: string $is
return: RichText

convertToExcelAddressValue(string $openOfficeAddress)   X-Ref
No description

convertToExcelFormulaValue(string $openOfficeFormula)   X-Ref
No description

readDefinedRanges(Spreadsheet $spreadsheet, DOMElement $workbookData, string $tableNs)   X-Ref
Read any Named Ranges that are defined in this spreadsheet.


readDefinedExpressions(Spreadsheet $spreadsheet, DOMElement $workbookData, string $tableNs)   X-Ref
Read any Named Formulae that are defined in this spreadsheet.


addDefinedName(Spreadsheet $spreadsheet, string $baseAddress, string $definedName, string $value)   X-Ref
Assess scope and store the Defined Name.