Öffentliche Methoden | |
__construct ($inline, $block) | |
validateChildren ($children, $config, $context) | |
Öffentliche Methoden geerbt von HTMLPurifier_ChildDef | |
getAllowedElements ($config) | |
validateChildren ($children, $config, $context) | |
Datenfelder | |
$inline | |
$block | |
$type = 'chameleon' | |
Datenfelder geerbt von HTMLPurifier_ChildDef | |
$type | |
$allow_empty | |
$elements = array() | |
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.
Definiert in Zeile 12 der Datei Chameleon.php.
__construct | ( | $inline, | |
$block | |||
) |
array | $inline | List of elements to allow when inline. |
array | $block | List of elements to allow when block. |
Definiert in Zeile 36 der Datei Chameleon.php.
validateChildren | ( | $children, | |
$config, | |||
$context | |||
) |
HTMLPurifier_Node[] | $children | |
HTMLPurifier_Config | $config | |
HTMLPurifier_Context | $context |
Definiert in Zeile 49 der Datei Chameleon.php.
$block |
Instance of the definition object to use when block. HTMLPurifier_ChildDef_Optional
Definiert in Zeile 25 der Datei Chameleon.php.
Wird benutzt von __construct().
$inline |
Instance of the definition object to use when inline. Usually stricter. HTMLPurifier_ChildDef_Optional
Definiert in Zeile 19 der Datei Chameleon.php.
Wird benutzt von __construct().
$type = 'chameleon' |
string
Definiert in Zeile 30 der Datei Chameleon.php.