PHP Class HTMLPurifier_ChildDef_Chameleon, yii

The del and ins tags are notable because they allow different types of elements depending on whether or not they're in a block or inline context. Chameleon allows this behavior to happen by using two different definitions depending on context. While this somewhat generalized, it is specifically intended for those two tags.
Inheritance: extends HTMLPurifier_ChildDef
Afficher le fichier Open project: yiisoft/yii

Méthodes publiques

Свойство Type Description
$block Instance of the definition object to use when block.
$inline Instance of the definition object to use when inline. Usually stricter.
$type

Méthodes publiques

Méthode Description
__construct ( array $inline, array $block )
validateChildren ( HTMLPurifier_Node[] $children, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean

Method Details

__construct() public méthode

public __construct ( array $inline, array $block )
$inline array List of elements to allow when inline.
$block array List of elements to allow when block.

validateChildren() public méthode

public validateChildren ( HTMLPurifier_Node[] $children, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean
$children HTMLPurifier_Node[]
$config HTMLPurifier_Config
$context HTMLPurifier_Context
Résultat boolean

Property Details

$block public_oe property

Instance of the definition object to use when block.
public $block

$inline public_oe property

Instance of the definition object to use when inline. Usually stricter.
public $inline

$type public_oe property

public $type