PHP Class HTMLPurifier_DoctypeRegistry, yii

Mostrar archivo Open project: yiisoft/yii Class Usage Examples

Protected Properties

Property Type Description
$aliases Lookup table of aliases to real doctype names.
$doctypes Hash of doctype names to doctype objects.

Public Methods

Method Description
get ( string $doctype ) : HTMLPurifier_Doctype Retrieves reference to a doctype of a certain name
getDoctypeFromConfig ( HTMLPurifier_Config $config ) : string Retrieves the doctype from the configuration object
make ( HTMLPurifier_Config $config ) : HTMLPurifier_Doctype Creates a doctype based on a configuration object, will perform initialization on the doctype
register ( string $doctype, boolean $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

Method Details

get() public method

Retrieves reference to a doctype of a certain name
public get ( string $doctype ) : HTMLPurifier_Doctype
$doctype string Name of doctype
return HTMLPurifier_Doctype Editable doctype object

getDoctypeFromConfig() public method

Retrieves the doctype from the configuration object
public getDoctypeFromConfig ( HTMLPurifier_Config $config ) : string
$config HTMLPurifier_Config
return string

make() public method

Creates a doctype based on a configuration object, will perform initialization on the doctype
public make ( HTMLPurifier_Config $config ) : HTMLPurifier_Doctype
$config HTMLPurifier_Config
return HTMLPurifier_Doctype

register() public method

Registers a doctype to the registry
public register ( string $doctype, boolean $xml = true, array $modules = [], array $tidy_modules = [], array $aliases = [], string $dtd_public = null, string $dtd_system = null ) : HTMLPurifier_Doctype
$doctype string Name of doctype or literal doctype object
$xml boolean
$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

Property Details

$aliases protected_oe property

Lookup table of aliases to real doctype names.
protected $aliases

$doctypes protected_oe property

Hash of doctype names to doctype objects.
protected $doctypes