ILIAS
Release_5_0_x_branch Revision 61816
|
Validates a keyword against a list of valid values. More...
Public Member Functions | |
__construct ($valid_values=array(), $case_sensitive=false) | |
validate ($string, $config, $context) | |
make ($string) | |
Public Member Functions inherited from HTMLPurifier_AttrDef | |
parseCDATA ($string) | |
Convenience method that parses a string as if it were CDATA. |
Data Fields | |
$valid_values = array() | |
Lookup table of valid values. | |
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. |
Protected Attributes | |
$case_sensitive = false | |
Bool indicating whether or not enumeration is case sensitive. |
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. |
Validates a keyword against a list of valid values.
HTMLPurifier_AttrDef_Enum::__construct | ( | $valid_values = array() , |
|
$case_sensitive = false |
|||
) |
array | $valid_values | List of valid values |
bool | $case_sensitive | Whether or not case sensitive |
Definition at line 30 of file Enum.php.
References $case_sensitive, and $valid_values.
HTMLPurifier_AttrDef_Enum::make | ( | $string | ) |
string | $string | In form of comma-delimited list of case-insensitive valid values. Example: "foo,bar,baz". Prepend "s:" to make case sensitive |
Reimplemented from HTMLPurifier_AttrDef.
Definition at line 60 of file Enum.php.
HTMLPurifier_AttrDef_Enum::validate | ( | $string, | |
$config, | |||
$context | |||
) |
string | $string | |
HTMLPurifier_Config | $config | |
HTMLPurifier_Context | $context |
Reimplemented from HTMLPurifier_AttrDef.
Reimplemented in HTMLPurifier_AttrDef_HTML_FrameTarget.
Definition at line 42 of file Enum.php.
References $result.
|
protected |
Bool indicating whether or not enumeration is case sensitive.
Definition at line 24 of file Enum.php.
Referenced by __construct().
HTMLPurifier_AttrDef_Enum::$valid_values = array() |
Lookup table of valid values.
array
Definition at line 18 of file Enum.php.
Referenced by __construct().