Methods | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
public
|
register(
string $doctype,
bool $xml = true,
array $modules = [],
array $tidy_modules = [],
array $aliases = [],
string $dtd_public = null,
string $dtd_system = null,
): HTMLPurifier_Doctype
Registers a doctype to the registry
Registers a doctype to the registry Parameters
ReturnsEditable registered doctype |
# | ||||||||
public
|
get(string $doctype): HTMLPurifier_Doctype
Retrieves reference to a doctype of a certain name
Retrieves reference to a doctype of a certain name Parameters
ReturnsEditable doctype object |
# | ||||||||
public
|
make(HTMLPurifier_Config $config): HTMLPurifier_Doctype
Creates a doctype based on a configuration object,
will perform initialization on the doctype
Creates a doctype based on a configuration object, will perform initialization on the doctype |
# | ||||||||
public
|
getDoctypeFromConfig(HTMLPurifier_Config $config): string
Retrieves the doctype from the configuration object
Retrieves the doctype from the configuration object |
# |
Properties | |||
---|---|---|---|
protected
|
|
$doctypes
Hash of doctype names to doctype objects.
Hash of doctype names to doctype objects. |
# |
protected
|
|
$aliases
Lookup table of aliases to real doctype names.
Lookup table of aliases to real doctype names. |
# |