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

Defines 2 classes


Class: OutputFormat  - X-Ref

Class OutputFormat

__construct()   X-Ref
No description

get($sName)   X-Ref
No description

set($aNames, $mValue)   X-Ref
No description

__call($sMethodName, $aArguments)   X-Ref
No description

indentWithTabs($iNumber = 1)   X-Ref
No description

indentWithSpaces($iNumber = 2)   X-Ref
No description

nextLevel()   X-Ref
No description

beLenient()   X-Ref
No description

getFormatter()   X-Ref
No description

level()   X-Ref
No description

create()   X-Ref
Create format.

return: OutputFormat Format.

createCompact()   X-Ref
Create compact format.

return: OutputFormat Format.

createPretty()   X-Ref
Create pretty format.

return: OutputFormat Format.

Class: OutputFormatter  - X-Ref

__construct(OutputFormat $oFormat)   X-Ref
No description

space($sName, $sType = null)   X-Ref
No description

spaceAfterRuleName()   X-Ref
No description

spaceBeforeRules()   X-Ref
No description

spaceAfterRules()   X-Ref
No description

spaceBetweenRules()   X-Ref
No description

spaceBeforeBlocks()   X-Ref
No description

spaceAfterBlocks()   X-Ref
No description

spaceBetweenBlocks()   X-Ref
No description

spaceBeforeSelectorSeparator()   X-Ref
No description

spaceAfterSelectorSeparator()   X-Ref
No description

spaceBeforeListArgumentSeparator($sSeparator)   X-Ref
No description

spaceAfterListArgumentSeparator($sSeparator)   X-Ref
No description

spaceBeforeOpeningBrace()   X-Ref
No description

safely($cCode)   X-Ref
Runs the given code, either swallowing or passing exceptions, depending on the bIgnoreExceptions setting.


implode($sSeparator, $aValues, $bIncreaseLevel = false)   X-Ref
Clone of the implode function but calls ->render with the current output format instead of __toString()


removeLastSemicolon($sString)   X-Ref
No description

prepareSpace($sSpaceString)   X-Ref
No description

indent()   X-Ref
No description