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


Public Member Functions | |
| __construct ($valid_values=array(), $case_sensitive=false) | |
| validate ($string, $config, $context) | |
| make ($string) | |
Data Fields | |
| $valid_values = array() | |
Protected Attributes | |
| $case_sensitive = false | |
Validates a keyword against a list of valid values.
| __construct | ( | $ | valid_values = array(), |
| $ | case_sensitive = false |
||
| ) |
| make | ( | $ | 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.
| 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.
Reimplemented in HTMLPurifier_AttrDef_HTML_FrameTarget.
$case_sensitive = false [protected] |
Bool indicating whether or not enumeration is case sensitive.
Reimplemented in HTMLPurifier_AttrDef_HTML_FrameTarget.
| $valid_values = array() |
Lookup table of valid values.
Reimplemented in HTMLPurifier_AttrDef_HTML_FrameTarget.