PHP Class HTMLPurifier_ChildDef, yii

显示文件 Open project: yiisoft/yii Class Usage Examples

Public Properties

Property Type Description
$allow_empty This is necessary for redundant checking when changes affecting a child node may cause a parent node to now be disallowed.
$elements Lookup array of all elements that this definition could possibly allow.
$type Used occasionally in terms of context.

Public Methods

Method Description
getAllowedElements ( HTMLPurifier_Config $config ) : array Get lookup of tag names that should not close this element automatically.
validateChildren ( HTMLPurifier_Node[] $children, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean | array Validates nodes according to definition and returns modification.

Method Details

getAllowedElements() public method

All other elements will do so.
public getAllowedElements ( HTMLPurifier_Config $config ) : array
$config HTMLPurifier_Config HTMLPurifier_Config object
return array

validateChildren() abstract public method

Validates nodes according to definition and returns modification.
abstract public validateChildren ( HTMLPurifier_Node[] $children, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean | array
$children HTMLPurifier_Node[] Array of HTMLPurifier_Node
$config HTMLPurifier_Config HTMLPurifier_Config object
$context HTMLPurifier_Context HTMLPurifier_Context object
return boolean | array true to leave nodes as is, false to remove parent node, array of replacement children

Property Details

$allow_empty public_oe property

This is necessary for redundant checking when changes affecting a child node may cause a parent node to now be disallowed.
public $allow_empty

$elements public_oe property

Lookup array of all elements that this definition could possibly allow.
public $elements

$type public_oe property

Used occasionally in terms of context.
public $type