PHP Class HTMLPurifier_ContentSets, yii

Afficher le fichier Open project: yiisoft/yii

Méthodes publiques

Свойство Type Description
$info List of content set strings (pipe separators) indexed by name.
$lookup List of content set lookups (element => true) indexed by name.

Protected Properties

Свойство Type Description
$keys Synchronized list of defined content sets (keys of info).
$values Synchronized list of defined content values (values of info).

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode Description
convertToLookup ( string $string ) : array Converts a string list of elements separated by pipes into a lookup array.

Method Details

__construct() public méthode

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() protected méthode

Converts a string list of elements separated by pipes into a lookup array.
protected convertToLookup ( string $string ) : array
$string string List of elements
Résultat array Lookup array of elements

generateChildDef() public méthode

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 méthode

public generateChildDefCallback ( $matches )

getChildDef() public méthode

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
Résultat HTMLPurifier_ChildDef corresponding to ElementDef

Property Details

$info public_oe property

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

$keys protected_oe property

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

$lookup public_oe property

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

$values protected_oe property

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