51        $parts = explode(
' ', $string); 
 
   52        $length = count($parts);
 
   54        for ($i = 0, $num = 0; $i < $length && $num < 
$this->max; $i++) {
 
   55            if (ctype_space($parts[$i])) {
 
An exception for terminatinating execution or to throw for unit testing.
Framework class for strings that involve multiple values.
__construct($single, $max=4)
$single
Instance of component definition to defer validation to.
$max
Max number of values allowed.
validate($string, $config, $context)
Base class for all validating attribute definitions.
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.