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: 899 lines (36 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($pFilename)   X-Ref
Can the current IReader read the file?

param: string $pFilename
return: bool

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

param: string $pFilename
return: false|SimpleXMLElement

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

param: string $pFilename
return: array

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 Spreadsheet from file.

param: string $pFilename
return: Spreadsheet

identifyFixedStyleValue($styleList, &$styleAttributeValue)   X-Ref
No description

hex2str($hex)   X-Ref
No description

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

param: string $pFilename
return: Spreadsheet

parseRichText($is)   X-Ref
No description

parseStyles(SimpleXMLElement $xml, array $namespaces)   X-Ref
No description

parseStyleAlignment($styleID, SimpleXMLElement $styleAttributes)   X-Ref

param: string $styleID

parseStyleBorders($styleID, SimpleXMLElement $styleData, array $namespaces)   X-Ref

param: $styleID

parseStyleFontUnderline(string $styleID, string $styleAttributeValue)   X-Ref
No description

parseStyleFontVerticalAlign(string $styleID, string $styleAttributeValue)   X-Ref
No description

parseStyleFont(string $styleID, SimpleXMLElement $styleAttributes)   X-Ref

param: $styleID

parseStyleInterior($styleID, SimpleXMLElement $styleAttributes)   X-Ref

param: $styleID

parseStyleNumberFormat($styleID, SimpleXMLElement $styleAttributes)   X-Ref

param: $styleID