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: 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