PHP Class HTMLPurifier_ContentSets, yii

ファイルを表示 Open project: yiisoft/yii

Public Properties

Property 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

Property Type Description
$keys Synchronized list of defined content sets (keys of info).
$values Synchronized list of defined content values (values of info).

Public Methods

Method 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

Protected Methods

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

Method Details

__construct() public method

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 method

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

generateChildDef() public method

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 method

public generateChildDefCallback ( $matches )

getChildDef() public method

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
return 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