Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

(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

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

Class: to  - X-Ref

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

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