HTMLPurifier_DoctypeRegistry
- Full name:
\HTMLPurifier_DoctypeRegistry
Properties
doctypes
Hash of doctype names to doctype objects.
aliases
Lookup table of aliases to real doctype names.
Methods
register
Registers a doctype to the registry
public register(string $doctype, bool $xml = true, array $modules = array(), array $tidy_modules = array(), array $aliases = array(), string $dtd_public = null, string $dtd_system = null): \HTMLPurifier_Doctype
Parameters:
Parameter | Type | Description |
---|---|---|
$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 Value:
Editable registered doctype
get
Retrieves reference to a doctype of a certain name
Parameters:
Parameter | Type | Description |
---|---|---|
$doctype |
string | Name of doctype |
Return Value:
Editable doctype object
make
Creates a doctype based on a configuration object, will perform initialization on the doctype
Parameters:
Parameter | Type | Description |
---|---|---|
$config |
\HTMLPurifier_Config |
getDoctypeFromConfig
Retrieves the doctype from the configuration object
Parameters:
Parameter | Type | Description |
---|---|---|
$config |
\HTMLPurifier_Config |
Automatically generated on 2025-03-18