Class HTMLPurifier_DoctypeRegistry
Inheritance | HTMLPurifier_DoctypeRegistry |
---|
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$aliases | Lookup table of aliases to real doctype names. | HTMLPurifier_DoctypeRegistry | |
$doctypes | Hash of doctype names to doctype objects. | HTMLPurifier_DoctypeRegistry |
Public Methods
Method | Description | Defined By |
---|---|---|
get() | Retrieves reference to a doctype of a certain name | HTMLPurifier_DoctypeRegistry |
getDoctypeFromConfig() | Retrieves the doctype from the configuration object | HTMLPurifier_DoctypeRegistry |
make() | Creates a doctype based on a configuration object, will perform initialization on the doctype | HTMLPurifier_DoctypeRegistry |
register() | Registers a doctype to the registry | HTMLPurifier_DoctypeRegistry |
Property Details
Method Details
Retrieves reference to a doctype of a certain name
public HTMLPurifier_Doctype get ( $doctype ) | ||
$doctype | string | Name of doctype |
return | HTMLPurifier_Doctype | Editable doctype object |
---|
Retrieves the doctype from the configuration object
public string getDoctypeFromConfig ( $config ) | ||
$config | HTMLPurifier_Config |
Creates a doctype based on a configuration object, will perform initialization on the doctype
public HTMLPurifier_Doctype make ( $config ) | ||
$config | HTMLPurifier_Config |
Registers a doctype to the registry
public HTMLPurifier_Doctype register ( $doctype, $xml = true, $modules = [], $tidy_modules = [], $aliases = [], $dtd_public = null, $dtd_system = null ) | ||
$doctype | string | Name of doctype or literal doctype object |
$xml | bool | |
$modules | array | Modules doctype will load |
$tidy_modules | array | Modules doctype will load for certain modes |
$aliases | array | Alias names for doctype |
$dtd_public | string | |
$dtd_system | string | |
return | HTMLPurifier_Doctype | Editable registered doctype |
---|