Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

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