Class HTMLPurifier_DoctypeRegistry

InheritanceHTMLPurifier_DoctypeRegistry

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$aliases Lookup table of aliases to real doctype names. HTMLPurifier_DoctypeRegistry
$doctypes Hash of doctype names to doctype objects. HTMLPurifier_DoctypeRegistry

Public Methods

Hide inherited methods

MethodDescriptionDefined 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

$aliases protected property
protected $aliases null
$doctypes protected property
protected $doctypes null

Method Details

get() public method

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

getDoctypeFromConfig() public method

Retrieves the doctype from the configuration object

public string getDoctypeFromConfig ( $config )
$config HTMLPurifier_Config
make() public method

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

public HTMLPurifier_Doctype make ( $config )
$config HTMLPurifier_Config
register() public method

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