Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 39 and 401] [Versions 39 and 402] [Versions 39 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