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 311 and 401] [Versions 311 and 402] [Versions 311 and 403]

(no description)

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

Defines 1 class

Size:: (12 methods):
  __construct()
  parse()
  getSizeUnits()
  setUnit()
  getUnit()
  setSize()
  getSize()
  isColorComponent()
  isSize()
  isRelative()
  __toString()
  render()


Class: Size  - X-Ref

__construct($fSize, $sUnit = null, $bIsColorComponent = false, $iLineNo = 0)   X-Ref
No description

parse(ParserState $oParserState, $bIsColorComponent = false)   X-Ref
No description

getSizeUnits()   X-Ref
No description

setUnit($sUnit)   X-Ref
No description

getUnit()   X-Ref
No description

setSize($fSize)   X-Ref
No description

getSize()   X-Ref
No description

isColorComponent()   X-Ref
No description

isSize()   X-Ref
Returns whether the number stored in this Size really represents a size (as in a length of something on screen).

return: false if the unit an angle, a duration, a frequency or the number is a component in a Color object.

isRelative()   X-Ref
No description

__toString()   X-Ref
No description

render(\Sabberworm\CSS\OutputFormat $oOutputFormat)   X-Ref
No description