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: 437 lines (16 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: Styles  - X-Ref

setNamespace(string $namespace)   X-Ref
No description

setWorkbookPalette(array $palette)   X-Ref
No description

castBool($value)   X-Ref
Cast SimpleXMLElement to bool to overcome Scrutinizer problem.

param: mixed $value

getStyleAttributes(SimpleXMLElement $value)   X-Ref
No description

setStyleXml(SimpleXmlElement $styleXml)   X-Ref
No description

setTheme(Theme $theme)   X-Ref
No description

setStyleBaseData(?Theme $theme = null, array $styles = [], array $cellStyles = [])   X-Ref
No description

readFontStyle(Font $fontStyle, SimpleXMLElement $fontStyleXml)   X-Ref
No description

readNumberFormat(NumberFormat $numfmtStyle, SimpleXMLElement $numfmtStyleXml)   X-Ref
No description

readFillStyle(Fill $fillStyle, SimpleXMLElement $fillStyleXml)   X-Ref
No description

readBorderStyle(Borders $borderStyle, SimpleXMLElement $borderStyleXml)   X-Ref
No description

getAttribute(SimpleXMLElement $xml, string $attribute)   X-Ref
No description

readBorder(Border $border, SimpleXMLElement $borderXml)   X-Ref
No description

readAlignmentStyle(Alignment $alignment, SimpleXMLElement $alignmentXml)   X-Ref
No description

formatGeneral(string $formatString)   X-Ref
No description

readStyle(Style $docStyle, $style)   X-Ref
Read style.

param: SimpleXMLElement|stdClass $style

readProtectionLocked(Style $docStyle, SimpleXMLElement $style)   X-Ref
Read protection locked attribute.


readProtectionHidden(Style $docStyle, SimpleXMLElement $style)   X-Ref
Read protection hidden attribute.


readColor(SimpleXMLElement $color, bool $background = false)   X-Ref
No description

dxfs(bool $readDataOnly = false)   X-Ref
No description

styles()   X-Ref
No description

getArrayItem($array, int $key = 0)   X-Ref
Get array item.

param: mixed $array (usually array, in theory can be false)
return: stdClass