Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 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.

(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

param: HTMLPurifier_Config $config
return: string

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

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

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

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

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

param: array $array List of objects
return: string

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

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

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

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