\HTMLPurifier_HTMLModuleManager
Synopsis
class HTMLPurifier_HTMLModuleManager
{
- // members
- public $doctypes;
- public $doctype;
- public $attrTypes;
- public array $modules = ;
- public array $registeredModules = ;
- public array $userModules = ;
- public array $elementLookup = ;
- public array $prefixes = ;
- public $contentSets;
- public $attrCollections;
- public boolean $trusted = false;
- // methods
- public void __construct()
- public void registerModule()
- public void addModule()
- public void addPrefix()
- public void setup()
- public void processModule()
- public Array getElements()
- public Merged getElement()
Members
public
- $attrCollections
-
$attrTypes
Instance of HTMLPurifier_AttrTypes - $contentSets
-
$doctype
Instance of current doctype -
$doctypes
Instance of HTMLPurifier_DoctypeRegistry -
$elementLookup
Associative array of element name to list of modules that have definitions for the element; this array is dynamically filled. -
$modules
Active instances of modules for the specified doctype are indexed, by name, in this array. -
$prefixes
List of prefixes we should use for registering small names -
$registeredModules
Array of recognized HTMLPurifier_Module instances, indexed by module's class name. This array is usually lazy loaded, but a user can overload a module by pre-emptively registering it. -
$trusted
If set to true, unsafe elements and attributes will be allowed -
$userModules
List of extra modules that were added by the user using addModule().
Methods
public
- __construct()
- addModule() — Adds a module to the current doctype by first registering it, and then tacking it on to the active doctype
- addPrefix() — Adds a class prefix that registerModule() will use to resolve a string name to a concrete class
- getElement() — Retrieves a single merged element definition
- getElements() — Retrieves merged element definitions.
- processModule() — Takes a module and adds it to the active module collection, registering it if necessary.
- registerModule() — Registers a module to the recognized module list, useful for overloading pre-existing modules.
- setup() — Performs processing on modules, after being called you may use getElement() and getElements()