|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Custom validation class, accepts DTD child definitions. More...
Inheritance diagram for HTMLPurifier_ChildDef_Custom:
Collaboration diagram for HTMLPurifier_ChildDef_Custom:Public Member Functions | |
| __construct ($dtd_regex) | |
| validateChildren ($children, $config, $context) | |
Public Member Functions inherited from HTMLPurifier_ChildDef | |
| 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 = 'custom' | |
| @type string More... | |
| $allow_empty = false | |
| @type bool More... | |
| $dtd_regex | |
| Allowed child pattern as defined by the DTD. More... | |
Data Fields inherited from HTMLPurifier_ChildDef | |
| $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... | |
Protected Member Functions | |
| _compileRegex () | |
| Compiles the PCRE regex from a DTD regex ($dtd_regex to $_pcre_regex) More... | |
Private Attributes | |
| $_pcre_regex | |
| PCRE regex derived from $dtd_regex. More... | |
Custom validation class, accepts DTD child definitions.
Definition at line 9 of file Custom.php.
| HTMLPurifier_ChildDef_Custom::__construct | ( | $dtd_regex | ) |
| $dtd_regex | Allowed child pattern from the DTD |
Definition at line 36 of file Custom.php.
References $dtd_regex, and _compileRegex().
Here is the call graph for this function:
|
protected |
Compiles the PCRE regex from a DTD regex ($dtd_regex to $_pcre_regex)
Definition at line 45 of file Custom.php.
Referenced by __construct().
Here is the caller graph for this function:| HTMLPurifier_ChildDef_Custom::validateChildren | ( | $children, | |
| $config, | |||
| $context | |||
| ) |
| HTMLPurifier_Node[] | $children | |
| HTMLPurifier_Config | $config | |
| HTMLPurifier_Context | $context |
Reimplemented from HTMLPurifier_ChildDef.
Definition at line 81 of file Custom.php.
|
private |
| HTMLPurifier_ChildDef_Custom::$allow_empty = false |
@type bool
Definition at line 19 of file Custom.php.
| HTMLPurifier_ChildDef_Custom::$dtd_regex |
Allowed child pattern as defined by the DTD.
@type string
Definition at line 25 of file Custom.php.
Referenced by __construct().
| HTMLPurifier_ChildDef_Custom::$type = 'custom' |
@type string
Definition at line 14 of file Custom.php.