|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| validateChildren ($tokens_of_children, $config, $context) | |
Data Fields | |
| $allow_empty = true | |
| $type = 'optional' | |
Definition that allows a set of elements, and allows no children.
Definition at line 10 of file Optional.php.
| 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_Required.
Definition at line 14 of file Optional.php.
| $allow_empty = true |
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_Required.
Definition at line 12 of file Optional.php.
| $type = 'optional' |
Type of child definition, usually right-most part of class name lowercase. Used occasionally in terms of context.
Reimplemented from HTMLPurifier_ChildDef_Required.
Definition at line 13 of file Optional.php.