PHP Класс HTMLPurifier_DoctypeRegistry, yii

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$aliases Lookup table of aliases to real doctype names.
$doctypes Hash of doctype names to doctype objects.

Открытые методы

Метод Описание
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

Описание методов

get() публичный Метод

Retrieves reference to a doctype of a certain name
public get ( string $doctype ) : HTMLPurifier_Doctype
$doctype string Name of doctype
Результат HTMLPurifier_Doctype Editable doctype object

getDoctypeFromConfig() публичный Метод

Retrieves the doctype from the configuration object
public getDoctypeFromConfig ( HTMLPurifier_Config $config ) : string
$config HTMLPurifier_Config
Результат string

make() публичный Метод

Creates a doctype based on a configuration object, will perform initialization on the doctype
public make ( HTMLPurifier_Config $config ) : HTMLPurifier_Doctype
$config HTMLPurifier_Config
Результат HTMLPurifier_Doctype

register() публичный Метод

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
Результат HTMLPurifier_Doctype Editable registered doctype

Описание свойств

$aliases защищенное свойство

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

$doctypes защищенное свойство

Hash of doctype names to doctype objects.
protected $doctypes