PHP Класс HTMLPurifier_ContentSets, yii

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$info List of content set strings (pipe separators) indexed by name.
$lookup List of content set lookups (element => true) indexed by name.

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

Свойство Тип Описание
$keys Synchronized list of defined content sets (keys of info).
$values Synchronized list of defined content values (values of info).

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

Метод Описание
__construct ( HTMLPurifier_HTMLModule[] $modules ) Merges in module's content sets, expands identifiers in the content sets and populates the keys, values and lookup member variables.
generateChildDef ( HTMLPurifier_ElementDef &$def, HTMLPurifier_HTMLModule $module ) Accepts a definition; generates and assigns a ChildDef for it
generateChildDefCallback ( $matches )
getChildDef ( HTMLPurifier_ElementDef $def, HTMLPurifier_HTMLModule $module ) : HTMLPurifier_ChildDef Instantiates a ChildDef based on content_model and content_model_type member variables in HTMLPurifier_ElementDef

Защищенные методы

Метод Описание
convertToLookup ( string $string ) : array Converts a string list of elements separated by pipes into a lookup array.

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

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

Merges in module's content sets, expands identifiers in the content sets and populates the keys, values and lookup member variables.
public __construct ( HTMLPurifier_HTMLModule[] $modules )
$modules HTMLPurifier_HTMLModule[] List of HTMLPurifier_HTMLModule

convertToLookup() защищенный Метод

Converts a string list of elements separated by pipes into a lookup array.
protected convertToLookup ( string $string ) : array
$string string List of elements
Результат array Lookup array of elements

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

Accepts a definition; generates and assigns a ChildDef for it
public generateChildDef ( HTMLPurifier_ElementDef &$def, HTMLPurifier_HTMLModule $module )
$def HTMLPurifier_ElementDef HTMLPurifier_ElementDef reference
$module HTMLPurifier_HTMLModule Module that defined the ElementDef

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

public generateChildDefCallback ( $matches )

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

Instantiates a ChildDef based on content_model and content_model_type member variables in HTMLPurifier_ElementDef
public getChildDef ( HTMLPurifier_ElementDef $def, HTMLPurifier_HTMLModule $module ) : HTMLPurifier_ChildDef
$def HTMLPurifier_ElementDef HTMLPurifier_ElementDef to have ChildDef extracted
$module HTMLPurifier_HTMLModule Module that defined the ElementDef
Результат HTMLPurifier_ChildDef corresponding to ElementDef

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

$info публичное свойство

List of content set strings (pipe separators) indexed by name.
public $info

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

Synchronized list of defined content sets (keys of info).
protected $keys

$lookup публичное свойство

List of content set lookups (element => true) indexed by name.
public $lookup

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

Synchronized list of defined content values (values of info).
protected $values