ILIAS
Release_4_2_x_branch Revision 61807
|
Definition that allows a set of elements, but disallows empty children. More...
Public Member Functions | |
__construct ($elements) | |
validateChildren ($tokens_of_children, $config, $context) | |
Validates nodes according to definition and returns modification. | |
Public Member Functions inherited from HTMLPurifier_ChildDef | |
getAllowedElements ($config) | |
Get lookup of tag names that should not close this element automatically. |
Data Fields | |
$elements = array() | |
Lookup table of allowed elements. | |
$allow_empty = false | |
$type = 'required' | |
Data Fields inherited from HTMLPurifier_ChildDef | |
$type | |
Type of child definition, usually right-most part of class name lowercase. | |
$allow_empty | |
Bool that indicates whether or not an empty array of children is okay. | |
$elements = array() | |
Lookup array of all elements that this definition could possibly allow. |
Protected Attributes | |
$whitespace = false | |
Whether or not the last passed node was all whitespace. |
Definition that allows a set of elements, but disallows empty children.
Definition at line 6 of file Required.php.
HTMLPurifier_ChildDef_Required::__construct | ( | $elements | ) |
$elements | List of allowed element names (lowercase). |
Definition at line 20 of file Required.php.
References $elements.
HTMLPurifier_ChildDef_Required::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.
Reimplemented in HTMLPurifier_ChildDef_StrictBlockquote, and HTMLPurifier_ChildDef_Optional.
Definition at line 37 of file Required.php.
References $config, and $result.
HTMLPurifier_ChildDef_Required::$allow_empty = false |
Definition at line 35 of file Required.php.
HTMLPurifier_ChildDef_Required::$elements = array() |
Lookup table of allowed elements.
Definition at line 12 of file Required.php.
Referenced by __construct(), and HTMLPurifier_ChildDef_StrictBlockquote\init().
HTMLPurifier_ChildDef_Required::$type = 'required' |
Definition at line 36 of file Required.php.
|
protected |
Whether or not the last passed node was all whitespace.
Definition at line 16 of file Required.php.