\HTMLPurifier_DoctypeRegistry

Summary

Methods
Properties
Constants
register()
get()
make()
getDoctypeFromConfig()
No public properties found
No constants found
No protected methods found
$doctypes
$aliases
N/A
No private methods found
No private properties found
N/A

Properties

$doctypes

$doctypes

Hash of doctype names to doctype objects.

$aliases

$aliases

Lookup table of aliases to real doctype names.

Methods

register()

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

Registers a doctype to the registry

Parameters

string $doctype

Name of doctype or literal doctype object

bool $xml
array $modules

Modules doctype will load

array $tidy_modules

Modules doctype will load for certain modes

array $aliases

Alias names for doctype

string $dtd_public
string $dtd_system

Returns

\HTMLPurifier_Doctype —

Editable registered doctype

get()

get(string  $doctype) : \HTMLPurifier_Doctype

Retrieves reference to a doctype of a certain name

Parameters

string $doctype

Name of doctype

Returns

\HTMLPurifier_Doctype —

Editable doctype object

make()

make(\HTMLPurifier_Config  $config) : \HTMLPurifier_Doctype

Creates a doctype based on a configuration object, will perform initialization on the doctype

Parameters

\HTMLPurifier_Config $config

Returns

\HTMLPurifier_Doctype —

getDoctypeFromConfig()

getDoctypeFromConfig(\HTMLPurifier_Config  $config) : string

Retrieves the doctype from the configuration object

Parameters

\HTMLPurifier_Config $config

Returns

string —