HTMLPurifier 4.4.0
|
Definition that uses different definitions depending on context. More...
Public Member Functions | |
__construct ($inline, $block) | |
validateChildren ($tokens_of_children, $config, $context) | |
Validates nodes according to definition and returns modification. | |
__construct ($inline, $block) | |
validateChildren ($tokens_of_children, $config, $context) | |
Validates nodes according to definition and returns modification. | |
Public Attributes | |
$inline | |
Instance of the definition object to use when inline. | |
$block | |
Instance of the definition object to use when block. | |
$type = 'chameleon' | |
Type of child definition, usually right-most part of class name lowercase. |
Definition that uses different definitions depending on context.
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.
Definition at line 12 of file Chameleon.php.
HTMLPurifier_ChildDef_Chameleon::__construct | ( | $ | inline, |
$ | block | ||
) |
$inline | List of elements to allow when inline. |
$block | List of elements to allow when block. |
Definition at line 31 of file Chameleon.php.
HTMLPurifier_ChildDef_Chameleon::__construct | ( | $ | inline, |
$ | block | ||
) |
$inline | List of elements to allow when inline. |
$block | List of elements to allow when block. |
Definition at line 11333 of file HTMLPurifier.standalone.php.
HTMLPurifier_ChildDef_Chameleon::validateChildren | ( | $ | tokens_of_children, |
$ | config, | ||
$ | context | ||
) |
Validates nodes according to definition and returns modification.
$tokens_of_children | Array of HTMLPurifier_Token |
$config | HTMLPurifier_Config object |
$context | HTMLPurifier_Context object |
Reimplemented from HTMLPurifier_ChildDef.
Definition at line 37 of file Chameleon.php.
References $config.
HTMLPurifier_ChildDef_Chameleon::validateChildren | ( | $ | tokens_of_children, |
$ | config, | ||
$ | context | ||
) |
Validates nodes according to definition and returns modification.
$tokens_of_children | Array of HTMLPurifier_Token |
$config | HTMLPurifier_Config object |
$context | HTMLPurifier_Context object |
Reimplemented from HTMLPurifier_ChildDef.
Definition at line 11339 of file HTMLPurifier.standalone.php.
References $config.
HTMLPurifier_ChildDef_Chameleon::$block |
Instance of the definition object to use when block.
Definition at line 23 of file Chameleon.php.
Referenced by __construct().
HTMLPurifier_ChildDef_Chameleon::$inline |
Instance of the definition object to use when inline.
Usually stricter.
Definition at line 18 of file Chameleon.php.
Referenced by __construct().
HTMLPurifier_ChildDef_Chameleon::$type = 'chameleon' |
Type of child definition, usually right-most part of class name lowercase.
Used occasionally in terms of context.
Reimplemented from HTMLPurifier_ChildDef.
Definition at line 25 of file Chameleon.php.