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


Public Member Functions | |
| __construct ($dtd_regex) | |
| validateChildren ($tokens_of_children, $config, $context) | |
Data Fields | |
| $type = 'custom' | |
| $allow_empty = false | |
| $dtd_regex | |
Protected Member Functions | |
| _compileRegex () | |
Custom validation class, accepts DTD child definitions
Definition at line 9 of file Custom.php.
| __construct | ( | $ | dtd_regex | ) |
| $dtd_regex | Allowed child pattern from the DTD |
Definition at line 25 of file Custom.php.

| _compileRegex | ( | ) | [protected] |
Compiles the PCRE regex from a DTD regex ($dtd_regex to $_pcre_regex)
Definition at line 32 of file Custom.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.
Definition at line 60 of file Custom.php.
| $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.
Definition at line 12 of file Custom.php.
| $dtd_regex |
Allowed child pattern as defined by the DTD
Definition at line 16 of file Custom.php.
| $type = 'custom' |
Type of child definition, usually right-most part of class name lowercase. Used occasionally in terms of context.
Reimplemented from HTMLPurifier_ChildDef.
Definition at line 11 of file Custom.php.