ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Defines allowed child nodes and validates nodes against it. More...
Public Member Functions | |
getAllowedElements ($config) | |
Get lookup of tag names that should not close this element automatically. More... | |
validateChildren ($children, $config, $context) | |
Validates nodes according to definition and returns modification. More... | |
Data Fields | |
$type | |
Type of child definition, usually right-most part of class name lowercase. More... | |
$allow_empty | |
Indicates whether or not an empty array of children is okay. More... | |
$elements = array() | |
Lookup array of all elements that this definition could possibly allow. More... | |
Defines allowed child nodes and validates nodes against it.
Definition at line 6 of file ChildDef.php.
HTMLPurifier_ChildDef::getAllowedElements | ( | $config | ) |
Get lookup of tag names that should not close this element automatically.
All other elements will do so.
HTMLPurifier_Config | $config | HTMLPurifier_Config object |
Definition at line 36 of file ChildDef.php.
References $config, $context, $elements, and validateChildren().
|
abstract |
Validates nodes according to definition and returns modification.
HTMLPurifier_Node[] | $children Array of HTMLPurifier_Node | |
HTMLPurifier_Config | $config | HTMLPurifier_Config object |
HTMLPurifier_Context | $context | HTMLPurifier_Context object |
Referenced by getAllowedElements().
HTMLPurifier_ChildDef::$allow_empty |
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. bool
Definition at line 22 of file ChildDef.php.
HTMLPurifier_ChildDef::$elements = array() |
Lookup array of all elements that this definition could possibly allow.
array
Definition at line 28 of file ChildDef.php.
Referenced by getAllowedElements().
HTMLPurifier_ChildDef::$type |
Type of child definition, usually right-most part of class name lowercase.
Used occasionally in terms of context. string
Definition at line 13 of file ChildDef.php.