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

Defines 1 class

HTMLPurifier_HTMLModuleManager:: (8 methods):
  __construct()
  registerModule()
  addModule()
  addPrefix()
  setup()
  processModule()
  getElements()
  getElement()


Class: HTMLPurifier_HTMLModuleManager  - X-Ref

__construct()   X-Ref
If set to true, unsafe elements and attributes will be allowed.


registerModule($module, $overload = false)   X-Ref
Registers a module to the recognized module list, useful for
overloading pre-existing modules.

param: $module Mixed: string module name, with or without
param: $overload Boolean whether or not to overload previous modules.

addModule($module)   X-Ref
Adds a module to the current doctype by first registering it,
and then tacking it on to the active doctype


addPrefix($prefix)   X-Ref
Adds a class prefix that registerModule() will use to resolve a
string name to a concrete class


setup($config)   X-Ref
Performs processing on modules, after being called you may
use getElement() and getElements()

param: HTMLPurifier_Config $config

processModule($module)   X-Ref
Takes a module and adds it to the active module collection,
registering it if necessary.


getElements()   X-Ref
Retrieves merged element definitions.

return: Array of HTMLPurifier_ElementDef

getElement($name, $trusted = null)   X-Ref
Retrieves a single merged element definition

param: string $name Name of element
param: bool $trusted Boolean trusted overriding parameter: set to true
return: HTMLPurifier_ElementDef Merged HTMLPurifier_ElementDef