51 $parts = explode(
' ', $string);
52 $length = count($parts);
55 if (ctype_space($parts[
$i])) {
__construct($single, $max=4)
Base class for all validating attribute definitions.
$single
Instance of component definition to defer validation to.
$max
Max number of values allowed.
parseCDATA($string)
Convenience method that parses a string as if it were CDATA.
mungeRgb($string)
Removes spaces from rgb(0, 0, 0) so that shorthand CSS properties work properly.
Framework class for strings that involve multiple values.
validate($string, $config, $context)