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.

(no description)

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

Defines 1 class

HTMLPurifier_Printer_HTMLDefinition:: (10 methods):
  render()
  renderDoctype()
  renderEnvironment()
  renderContentSets()
  renderInfo()
  renderChildren()
  listifyTagLookup()
  listifyObjectList()
  listifyAttr()
  heavyHeader()


Class: HTMLPurifier_Printer_HTMLDefinition  - X-Ref

render($config)   X-Ref

return: string
param: HTMLPurifier_Config $config

renderDoctype()   X-Ref
Renders the Doctype table

return: string

renderEnvironment()   X-Ref
Renders environment table, which is miscellaneous info

return: string

renderContentSets()   X-Ref
Renders the Content Sets table

return: string

renderInfo()   X-Ref
Renders the Elements ($info) table

return: string

renderChildren($def)   X-Ref
Renders a row describing the allowed children of an element

return: string
param: HTMLPurifier_ChildDef $def HTMLPurifier_ChildDef of pertinent element

listifyTagLookup($array)   X-Ref
Listifies a tag lookup table.

return: string
param: array $array Tag lookup array in form of array('tagname' => true)

listifyObjectList($array)   X-Ref
Listifies a list of objects by retrieving class names and internal state

return: string
param: array $array List of objects

listifyAttr($array)   X-Ref
Listifies a hash of attributes to AttrDef classes

return: string
param: array $array Array hash in form of array('attrname' => HTMLPurifier_AttrDef)

heavyHeader($text, $num = 1)   X-Ref
Creates a heavy header row

return: string
param: string $text
param: int $num