Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

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

(no description)

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

Defines 1 class


Class: Xml  - X-Ref

Reader for SpreadsheetML, the XML schema for Microsoft Office Excel 2003.

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


xmlMappings()   X-Ref
No description

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


trySimpleXMLLoadString($filename)   X-Ref
Check if the file is a valid SimpleXML.

param: string $filename
return: false|SimpleXMLElement

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

param: string $filename
return: array

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

param: string $filename
return: array

loadSpreadsheetFromString(string $contents)   X-Ref
Loads Spreadsheet from string.


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


loadIntoExisting(string $filename, Spreadsheet $spreadsheet, bool $useContents = false)   X-Ref
Loads from file or contents into Spreadsheet instance.

param: string $filename file name if useContents is false else file contents

parseCellComment(SimpleXMLElement $comment,Spreadsheet $spreadsheet,string $columnID,int $rowID)   X-Ref
No description

parseRichText(string $annotation)   X-Ref
No description

getAttributes(?SimpleXMLElement $simple, string $node)   X-Ref
No description