ILIAS
Release_4_1_x_branch Revision 61804
|
Allows multiple validators to attempt to validate attribute. More...
Public Member Functions | |
__construct ($defs) | |
validate ($string, $config, $context) | |
Validates and cleans passed string according to a definition. | |
Public Member Functions inherited from HTMLPurifier_AttrDef | |
parseCDATA ($string) | |
Convenience method that parses a string as if it were CDATA. | |
make ($string) | |
Factory method for creating this class from a string. |
Data Fields | |
$defs | |
List of HTMLPurifier_AttrDef objects that may process strings. | |
Data Fields inherited from HTMLPurifier_AttrDef | |
$minimized = false | |
Tells us whether or not an HTML attribute is minimized. | |
$required = false | |
Tells us whether or not an HTML attribute is required. |
Additional Inherited Members | |
Protected Member Functions inherited from HTMLPurifier_AttrDef | |
mungeRgb ($string) | |
Removes spaces from rgb(0, 0, 0) so that shorthand CSS properties work properly. | |
expandCSSEscape ($string) | |
Parses a possibly escaped CSS string and returns the "pure" version of it. |
Allows multiple validators to attempt to validate attribute.
Composite is just what it sounds like: a composite of many validators. This means that multiple HTMLPurifier_AttrDef objects will have a whack at the string. If one of them passes, that's what is returned. This is especially useful for CSS values, which often are a choice between an enumerated set of predefined values or a flexible data type.
Definition at line 12 of file Composite.php.
HTMLPurifier_AttrDef_CSS_Composite::__construct | ( | $defs | ) |
$defs | List of HTMLPurifier_AttrDef objects |
Definition at line 24 of file Composite.php.
References $defs.
HTMLPurifier_AttrDef_CSS_Composite::validate | ( | $string, | |
$config, | |||
$context | |||
) |
Validates and cleans passed string according to a definition.
$string | String to be validated and cleaned. |
$config | Mandatory HTMLPurifier_Config object. |
$context | Mandatory HTMLPurifier_AttrContext object. |
Reimplemented from HTMLPurifier_AttrDef.
Definition at line 28 of file Composite.php.
HTMLPurifier_AttrDef_CSS_Composite::$defs |
List of HTMLPurifier_AttrDef objects that may process strings.
Definition at line 19 of file Composite.php.
Referenced by __construct().