|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Collaboration diagram for HTMLPurifier_HTMLModuleManager:Public Member Functions | |
| __construct () | |
| registerModule ($module, $overload=false) | |
| Registers a module to the recognized module list, useful for overloading pre-existing modules. More... | |
| addModule ($module) | |
| Adds a module to the current doctype by first registering it, and then tacking it on to the active doctype. More... | |
| addPrefix ($prefix) | |
| Adds a class prefix that registerModule() will use to resolve a string name to a concrete class. More... | |
| setup ($config) | |
| Performs processing on modules, after being called you may use getElement() and getElements() More... | |
| processModule ($module) | |
| Takes a module and adds it to the active module collection, registering it if necessary. More... | |
| getElements () | |
| Retrieves merged element definitions. More... | |
| getElement ($name, $trusted=null) | |
| Retrieves a single merged element definition. More... | |
Data Fields | |
| $doctypes | |
| @type HTMLPurifier_DoctypeRegistry More... | |
| $doctype | |
| Instance of current doctype. More... | |
| $attrTypes | |
| @type HTMLPurifier_AttrTypes More... | |
| $modules = array() | |
| Active instances of modules for the specified doctype are indexed, by name, in this array. More... | |
| $registeredModules = array() | |
| Array of recognized HTMLPurifier_HTMLModule instances, indexed by module's class name. More... | |
| $userModules = array() | |
| List of extra modules that were added by the user using addModule(). More... | |
| $elementLookup = array() | |
| Associative array of element name to list of modules that have definitions for the element; this array is dynamically filled. More... | |
| $prefixes = array('HTMLPurifier_HTMLModule_') | |
| List of prefixes we should use for registering small names. More... | |
| $contentSets | |
| @type HTMLPurifier_ContentSets More... | |
| $attrCollections | |
| @type HTMLPurifier_AttrCollections More... | |
| $trusted = false | |
| If set to true, unsafe elements and attributes will be allowed. More... | |
Definition at line 3 of file HTMLModuleManager.php.
| HTMLPurifier_HTMLModuleManager::__construct | ( | ) |
Definition at line 74 of file HTMLModuleManager.php.
| HTMLPurifier_HTMLModuleManager::addModule | ( | $module | ) |
Adds a module to the current doctype by first registering it, and then tacking it on to the active doctype.
Definition at line 209 of file HTMLModuleManager.php.
References registerModule().
Here is the call graph for this function:| HTMLPurifier_HTMLModuleManager::addPrefix | ( | $prefix | ) |
Adds a class prefix that registerModule() will use to resolve a string name to a concrete class.
Definition at line 222 of file HTMLModuleManager.php.
| HTMLPurifier_HTMLModuleManager::getElement | ( | $name, | |
$trusted = null |
|||
| ) |
Retrieves a single merged element definition.
| string | $name | Name of element |
| bool | $trusted | Boolean trusted overriding parameter: set to true if you want the full version of an element |
Definition at line 379 of file HTMLModuleManager.php.
References $trusted.
Referenced by getElements().
Here is the caller graph for this function:| HTMLPurifier_HTMLModuleManager::getElements | ( | ) |
Retrieves merged element definitions.
Definition at line 342 of file HTMLModuleManager.php.
References $n, and getElement().
Here is the call graph for this function:| HTMLPurifier_HTMLModuleManager::processModule | ( | $module | ) |
Takes a module and adds it to the active module collection, registering it if necessary.
Definition at line 330 of file HTMLModuleManager.php.
References registerModule().
Referenced by setup().
Here is the call graph for this function:
Here is the caller graph for this function:| HTMLPurifier_HTMLModuleManager::registerModule | ( | $module, | |
$overload = false |
|||
| ) |
Registers a module to the recognized module list, useful for overloading pre-existing modules.
| $module | Mixed: string module name, with or without HTMLPurifier_HTMLModule prefix, or instance of subclass of HTMLPurifier_HTMLModule. |
| $overload | Boolean whether or not to overload previous modules. If this is not set, and you do overload a module, HTML Purifier will complain with a warning. |
Definition at line 170 of file HTMLModuleManager.php.
References $ok.
Referenced by addModule(), and processModule().
Here is the caller graph for this function:| HTMLPurifier_HTMLModuleManager::setup | ( | $config | ) |
Performs processing on modules, after being called you may use getElement() and getElements()
| HTMLPurifier_Config | $config |
Definition at line 232 of file HTMLModuleManager.php.
References $modules, $n, and processModule().
Here is the call graph for this function:| HTMLPurifier_HTMLModuleManager::$attrCollections |
@type HTMLPurifier_AttrCollections
Definition at line 66 of file HTMLModuleManager.php.
| HTMLPurifier_HTMLModuleManager::$attrTypes |
@type HTMLPurifier_AttrTypes
Definition at line 20 of file HTMLModuleManager.php.
| HTMLPurifier_HTMLModuleManager::$contentSets |
@type HTMLPurifier_ContentSets
Definition at line 61 of file HTMLModuleManager.php.
| HTMLPurifier_HTMLModuleManager::$doctype |
| HTMLPurifier_HTMLModuleManager::$doctypes |
@type HTMLPurifier_DoctypeRegistry
Definition at line 9 of file HTMLModuleManager.php.
| HTMLPurifier_HTMLModuleManager::$elementLookup = array() |
Associative array of element name to list of modules that have definitions for the element; this array is dynamically filled.
@type array
Definition at line 50 of file HTMLModuleManager.php.
| HTMLPurifier_HTMLModuleManager::$modules = array() |
Active instances of modules for the specified doctype are indexed, by name, in this array.
@type HTMLPurifier_HTMLModule[]
Definition at line 27 of file HTMLModuleManager.php.
Referenced by setup().
| HTMLPurifier_HTMLModuleManager::$prefixes = array('HTMLPurifier_HTMLModule_') |
List of prefixes we should use for registering small names.
@type array
Definition at line 56 of file HTMLModuleManager.php.
| HTMLPurifier_HTMLModuleManager::$registeredModules = array() |
Array of recognized HTMLPurifier_HTMLModule 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. @type HTMLPurifier_HTMLModule[]
Definition at line 35 of file HTMLModuleManager.php.
| HTMLPurifier_HTMLModuleManager::$trusted = false |
If set to true, unsafe elements and attributes will be allowed.
@type bool
Definition at line 72 of file HTMLModuleManager.php.
Referenced by getElement().
| HTMLPurifier_HTMLModuleManager::$userModules = array() |
List of extra modules that were added by the user using addModule().
These get unconditionally merged into the current doctype, whatever it may be. @type HTMLPurifier_HTMLModule[]
Definition at line 43 of file HTMLModuleManager.php.