Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401]

(no description)

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

Defines 1 class

OutputFormat:: (13 methods):
  __construct()
  get()
  set()
  __call()
  indentWithTabs()
  indentWithSpaces()
  nextLevel()
  beLenient()
  getFormatter()
  level()
  create()
  createCompact()
  createPretty()


Class: OutputFormat  - X-Ref

Class OutputFormat

__construct()   X-Ref


get($sName)   X-Ref

param: string $sName
return: string|null

set($aNames, $mValue)   X-Ref

param: array<array-key, string>|string $aNames
param: mixed $mValue
return: self|false

__call($sMethodName, array $aArguments)   X-Ref

param: string $sMethodName
param: array<array-key, mixed> $aArguments
return: mixed

indentWithTabs($iNumber = 1)   X-Ref

param: int $iNumber
return: self

indentWithSpaces($iNumber = 2)   X-Ref

param: int $iNumber
return: self

nextLevel()   X-Ref

return: OutputFormat

beLenient()   X-Ref

return: void

getFormatter()   X-Ref

return: OutputFormatter

level()   X-Ref

return: int

create()   X-Ref
Creates an instance of this class without any particular formatting settings.

return: self

createCompact()   X-Ref
Creates an instance of this class with a preset for compact formatting.

return: self

createPretty()   X-Ref
Creates an instance of this class with a preset for pretty formatting.

return: self