Public Member Functions | |
| register ($doctype, $xml=true, $modules=array(), $tidy_modules=array(), $aliases=array(), $dtd_public=null, $dtd_system=null) | |
| Registers a doctype to the registry. | |
| get ($doctype) | |
| Retrieves reference to a doctype of a certain name. | |
| make ($config) | |
| Creates a doctype based on a configuration object, will perform initialization on the doctype. | |
| getDoctypeFromConfig ($config) | |
| Retrieves the doctype from the configuration object. | |
| register ($doctype, $xml=true, $modules=array(), $tidy_modules=array(), $aliases=array(), $dtd_public=null, $dtd_system=null) | |
| Registers a doctype to the registry. | |
| get ($doctype) | |
| Retrieves reference to a doctype of a certain name. | |
| make ($config) | |
| Creates a doctype based on a configuration object, will perform initialization on the doctype. | |
| getDoctypeFromConfig ($config) | |
| Retrieves the doctype from the configuration object. | |
Protected Attributes | |
| $doctypes | |
| Hash of doctype names to doctype objects. | |
| $aliases | |
| Lookup table of aliases to real doctype names. | |
Definition at line 3 of file DoctypeRegistry.php.
| HTMLPurifier_DoctypeRegistry::register | ( | $ | doctype, | |
| $ | xml = true, |
|||
| $ | modules = array(), |
|||
| $ | tidy_modules = array(), |
|||
| $ | aliases = array(), |
|||
| $ | dtd_public = null, |
|||
| $ | dtd_system = null | |||
| ) |
Registers a doctype to the registry.
| $doctype | Name of doctype or literal doctype object | |
| $modules | Modules doctype will load | |
| $modules_for_modes | Modules doctype will load for certain modes | |
| $aliases | Alias names for doctype |
Definition at line 26 of file DoctypeRegistry.php.
References $aliases.
| HTMLPurifier_DoctypeRegistry::get | ( | $ | doctype | ) |
Retrieves reference to a doctype of a certain name.
When possible, use the more fully-featured make()
| $doctype | Name of doctype |
Definition at line 56 of file DoctypeRegistry.php.
| HTMLPurifier_DoctypeRegistry::make | ( | $ | config | ) |
Creates a doctype based on a configuration object, will perform initialization on the doctype.
Definition at line 74 of file DoctypeRegistry.php.
References getDoctypeFromConfig().
| HTMLPurifier_DoctypeRegistry::getDoctypeFromConfig | ( | $ | config | ) |
Retrieves the doctype from the configuration object.
Definition at line 81 of file DoctypeRegistry.php.
Referenced by make().
| HTMLPurifier_DoctypeRegistry::register | ( | $ | doctype, | |
| $ | xml = true, |
|||
| $ | modules = array(), |
|||
| $ | tidy_modules = array(), |
|||
| $ | aliases = array(), |
|||
| $ | dtd_public = null, |
|||
| $ | dtd_system = null | |||
| ) |
Registers a doctype to the registry.
| $doctype | Name of doctype or literal doctype object | |
| $modules | Modules doctype will load | |
| $modules_for_modes | Modules doctype will load for certain modes | |
| $aliases | Alias names for doctype |
Definition at line 2444 of file HTMLPurifier.standalone.php.
References $aliases.
| HTMLPurifier_DoctypeRegistry::get | ( | $ | doctype | ) |
Retrieves reference to a doctype of a certain name.
When possible, use the more fully-featured make()
| $doctype | Name of doctype |
Definition at line 2474 of file HTMLPurifier.standalone.php.
| HTMLPurifier_DoctypeRegistry::make | ( | $ | config | ) |
Creates a doctype based on a configuration object, will perform initialization on the doctype.
Definition at line 2492 of file HTMLPurifier.standalone.php.
References getDoctypeFromConfig().
| HTMLPurifier_DoctypeRegistry::getDoctypeFromConfig | ( | $ | config | ) |
Retrieves the doctype from the configuration object.
Definition at line 2499 of file HTMLPurifier.standalone.php.
HTMLPurifier_DoctypeRegistry::$doctypes [protected] |
HTMLPurifier_DoctypeRegistry::$aliases [protected] |
Lookup table of aliases to real doctype names.
Definition at line 14 of file DoctypeRegistry.php.
Referenced by register().
1.5.3