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

Defines 1 class

Rule:: (21 methods):
  __construct()
  parse()
  listDelimiterForRule()
  getLineNo()
  setRule()
  getRule()
  getValue()
  setValue()
  setValues()
  getValues()
  addValue()
  addIeHack()
  setIeHack()
  getIeHack()
  setIsImportant()
  getIsImportant()
  __toString()
  render()
  addComments()
  getComments()
  setComments()


Class: Rule  - X-Ref

RuleSets contains Rule objects which always have a key and a value.
In CSS, Rules are expressed as follows: “key: value[0][0] value[0][1], value[1][0] value[1][1];”

__construct($sRule, $iLineNo = 0)   X-Ref
No description

parse(ParserState $oParserState)   X-Ref
No description

listDelimiterForRule($sRule)   X-Ref
No description

getLineNo()   X-Ref

return: int

setRule($sRule)   X-Ref
No description

getRule()   X-Ref
No description

getValue()   X-Ref
No description

setValue($mValue)   X-Ref
No description

setValues($aSpaceSeparatedValues)   X-Ref


getValues()   X-Ref


addValue($mValue, $sType = ' ')   X-Ref
Adds a value to the existing value. Value will be appended if a RuleValueList exists of the given type. Otherwise, the existing value will be wrapped by one.


addIeHack($iModifier)   X-Ref
No description

setIeHack(array $aModifiers)   X-Ref
No description

getIeHack()   X-Ref
No description

setIsImportant($bIsImportant)   X-Ref
No description

getIsImportant()   X-Ref
No description

__toString()   X-Ref
No description

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

addComments(array $aComments)   X-Ref

param: array $aComments Array of comments.

getComments()   X-Ref

return: array

setComments(array $aComments)   X-Ref

param: array $aComments Array containing Comment objects.