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.

(no description)

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

Defines 1 class

WorkbookView:: (13 methods):
  __construct()
  viewSettings()
  testSimpleXml()
  getAttributes()
  castXsdBooleanToBool()
  horizontalScroll()
  verticalScroll()
  sheetTabs()
  minimized()
  autoFilterDateGrouping()
  firstSheet()
  visibility()
  tabRatio()


Class: WorkbookView  - X-Ref

__construct(Spreadsheet $spreadsheet)   X-Ref


viewSettings(SimpleXMLElement $xmlWorkbook, $mainNS, array $mapSheetId, bool $readDataOnly)   X-Ref

param: mixed $mainNS

testSimpleXml($value)   X-Ref

param: mixed $value

getAttributes(?SimpleXMLElement $value, string $ns = '')   X-Ref
No description

castXsdBooleanToBool(string $xsdBoolean)   X-Ref
Convert an 'xsd:boolean' XML value to a PHP boolean value.
A valid 'xsd:boolean' XML value can be one of the following
four values: 'true', 'false', '1', '0'.  It is case sensitive.

Note that just doing '(bool) $xsdBoolean' is not safe,
since '(bool) "false"' returns true.

param: string $xsdBoolean An XML string value of type 'xsd:boolean'
return: bool  Boolean value

horizontalScroll(SimpleXMLElement $workbookViewAttributes)   X-Ref
No description

verticalScroll(SimpleXMLElement $workbookViewAttributes)   X-Ref
No description

sheetTabs(SimpleXMLElement $workbookViewAttributes)   X-Ref
No description

minimized(SimpleXMLElement $workbookViewAttributes)   X-Ref
No description

autoFilterDateGrouping(SimpleXMLElement $workbookViewAttributes)   X-Ref
No description

firstSheet(SimpleXMLElement $workbookViewAttributes)   X-Ref
No description

visibility(SimpleXMLElement $workbookViewAttributes)   X-Ref
No description

tabRatio(SimpleXMLElement $workbookViewAttributes)   X-Ref
No description