|
HTMLPurifier 4.4.0
|
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. | |
| __construct ($elements) | |
| validateChildren ($tokens_of_children, $config, $context) | |
| Validates nodes according to definition and returns modification. | |
Public Attributes | |
| $elements = array() | |
| Lookup table of allowed elements. | |
| $allow_empty = false | |
| Bool that indicates whether or not an empty array of children is okay. | |
| $type = 'required' | |
| Type of child definition, usually right-most part of class name lowercase. | |
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::__construct | ( | $ | elements | ) |
| $elements | List of allowed element names (lowercase). |
Definition at line 11604 of file HTMLPurifier.standalone.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_Optional, HTMLPurifier_ChildDef_StrictBlockquote, HTMLPurifier_ChildDef_Optional, and HTMLPurifier_ChildDef_StrictBlockquote.
Definition at line 37 of file Required.php.
References $config.
| 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_Optional, HTMLPurifier_ChildDef_StrictBlockquote, HTMLPurifier_ChildDef_Optional, and HTMLPurifier_ChildDef_StrictBlockquote.
Definition at line 11621 of file HTMLPurifier.standalone.php.
References $config.
| HTMLPurifier_ChildDef_Required::$allow_empty = false |
Bool that indicates whether or not an empty array of children is okay.
This is necessary for redundant checking when changes affecting a child node may cause a parent node to now be disallowed.
Reimplemented from HTMLPurifier_ChildDef.
Reimplemented in HTMLPurifier_ChildDef_Optional, and HTMLPurifier_ChildDef_StrictBlockquote.
Definition at line 35 of file Required.php.
| HTMLPurifier_ChildDef_Required::$elements = array() |
Lookup table of allowed elements.
Reimplemented from HTMLPurifier_ChildDef.
Definition at line 12 of file Required.php.
Referenced by __construct().
| HTMLPurifier_ChildDef_Required::$type = 'required' |
Type of child definition, usually right-most part of class name lowercase.
Used occasionally in terms of context.
Reimplemented from HTMLPurifier_ChildDef.
Reimplemented in HTMLPurifier_ChildDef_Optional, and HTMLPurifier_ChildDef_StrictBlockquote.
Definition at line 36 of file Required.php.
HTMLPurifier_ChildDef_Required::$whitespace = false [protected] |
Whether or not the last passed node was all whitespace.
Definition at line 16 of file Required.php.