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.

(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