|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| __construct () | |
| registerModule ($module, $overload=false) | |
| addModule ($module) | |
| addPrefix ($prefix) | |
| setup ($config) | |
| processModule ($module) | |
| getElements () | |
| getElement ($name, $trusted=null) | |
Data Fields | |
| $doctypes | |
| $doctype | |
| $attrTypes | |
| $modules = array() | |
| $registeredModules = array() | |
| $userModules = array() | |
| $elementLookup = array() | |
| $prefixes = array('HTMLPurifier_HTMLModule_') | |
| $contentSets | |
| $attrCollections | |
| $trusted = false | |
Definition at line 3 of file HTMLModuleManager.php.
| __construct | ( | ) |
Definition at line 56 of file HTMLModuleManager.php.
| 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 181 of file HTMLModuleManager.php.

| addPrefix | ( | $ | prefix | ) |
Adds a class prefix that registerModule() will use to resolve a string name to a concrete class
Definition at line 191 of file HTMLModuleManager.php.
| getElement | ( | $ | name, |
| $ | trusted = null |
||
| ) |
Retrieves a single merged element definition
| $name | Name of element |
| $trusted | Boolean trusted overriding parameter: set to true if you want the full version of an element |
Definition at line 330 of file HTMLModuleManager.php.

| getElements | ( | ) |
Retrieves merged element definitions.
Definition at line 299 of file HTMLModuleManager.php.

| processModule | ( | $ | module | ) |
Takes a module and adds it to the active module collection, registering it if necessary.
Definition at line 288 of file HTMLModuleManager.php.


| 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 145 of file HTMLModuleManager.php.

| setup | ( | $ | config | ) |
Performs processing on modules, after being called you may use getElement() and getElements()
| $config | Instance of HTMLPurifier_Config |
Definition at line 200 of file HTMLModuleManager.php.

| $attrCollections |
Instance of HTMLPurifier_AttrCollections
Definition at line 51 of file HTMLModuleManager.php.
| $attrTypes |
Instance of HTMLPurifier_AttrTypes
Definition at line 19 of file HTMLModuleManager.php.
| $contentSets |
Instance of HTMLPurifier_ContentSets
Definition at line 50 of file HTMLModuleManager.php.
| $doctype |
Instance of current doctype
Definition at line 14 of file HTMLModuleManager.php.
| $doctypes |
Instance of HTMLPurifier_DoctypeRegistry
Definition at line 9 of file HTMLModuleManager.php.
| $elementLookup = array() |
Associative array of element name to list of modules that have definitions for the element; this array is dynamically filled.
Definition at line 45 of file HTMLModuleManager.php.
| $modules = array() |
Active instances of modules for the specified doctype are indexed, by name, in this array.
Definition at line 25 of file HTMLModuleManager.php.
| $prefixes = array('HTMLPurifier_HTMLModule_') |
List of prefixes we should use for registering small names
Definition at line 48 of file HTMLModuleManager.php.
| $registeredModules = array() |
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.
Definition at line 32 of file HTMLModuleManager.php.
| $trusted = false |
If set to true, unsafe elements and attributes will be allowed
Definition at line 54 of file HTMLModuleManager.php.
| $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.
Definition at line 39 of file HTMLModuleManager.php.