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: 170 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

HTMLPurifier_ContentSets:: (4 methods):
  __construct()
  generateChildDef()
  generateChildDefCallback()
  getChildDef()

to:: (1 method):
  convertToLookup()


Class: HTMLPurifier_ContentSets  - X-Ref


__construct($modules)   X-Ref
Merges in module's content sets, expands identifiers in the content
sets and populates the keys, values and lookup member variables.

param: HTMLPurifier_HTMLModule[] $modules List of HTMLPurifier_HTMLModule

generateChildDef(&$def, $module)   X-Ref
Accepts a definition; generates and assigns a ChildDef for it

param: HTMLPurifier_ElementDef $def HTMLPurifier_ElementDef reference
param: HTMLPurifier_HTMLModule $module Module that defined the ElementDef

generateChildDefCallback($matches)   X-Ref
No description

getChildDef($def, $module)   X-Ref
Instantiates a ChildDef based on content_model and content_model_type
member variables in HTMLPurifier_ElementDef

return: HTMLPurifier_ChildDef corresponding to ElementDef
param: HTMLPurifier_ElementDef $def HTMLPurifier_ElementDef to have ChildDef extracted
param: HTMLPurifier_HTMLModule $module Module that defined the ElementDef

Class: to  - X-Ref

convertToLookup($string)   X-Ref
Converts a string list of elements separated by pipes into
a lookup array.

return: array Lookup array of elements
param: string $string List of elements