Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

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

(no description)

File Size: 767 lines (33 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.

param: string $filename
return: string[]

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

param: string $filename
return: array

getXmlName(XMLReader $xml)   X-Ref
Counteract Phpstan caching.


loadSpreadsheetFromFile(string $filename)   X-Ref
Loads PhpSpreadsheet from file.


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

param: string $filename
return: Spreadsheet

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

getMultiplier(?DOMAttr $cAttr)   X-Ref
No description

parseRichText($is)   X-Ref

param: string $is
return: RichText

processMergedCells(DOMElement $cellData,string $tableNs,string $type,string $columnID,int $rowID,Spreadsheet $spreadsheet)   X-Ref
No description