Search moodle.org's
Developer Documentation

See Release Notes

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

(no description)

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

Defines 1 class


Class: WorkbookRelationshipsManager  - X-Ref


__construct(string $filePath)   X-Ref

param: string $filePath Path of the XLSX file being read

getSharedStringsXMLFilePath()   X-Ref

return: string The path of the shared string XML file

hasSharedStringsXMLFile()   X-Ref

return: bool Whether the XLSX file contains a shared string XML file

hasStylesXMLFile()   X-Ref

return: bool Whether the XLSX file contains a styles XML file

getStylesXMLFilePath()   X-Ref

return: string The path of the styles XML file

getWorkbookRelationships()   X-Ref
Reads the workbook.xml.rels and extracts the filename associated to the different types.
It caches the result so that the file is read only once.

return: array<string, string>

processWorkbookRelationship(XMLReader $xmlReader)   X-Ref
Extracts and store the data of the current workbook relationship.