Public Member Functions | |
| __construct ($type) | |
| isValid ($value) | |
Static Protected Attributes | |
| static | $supportedType |
Static Private Member Functions | |
| static | booleanString ($value) |
| static | floatString ($value) |
| static | integerString ($value) |
Validator that checks the data type of a value
Definition at line 67 of file validator.lib.php.
| __construct | ( | $ | type | ) |
Allowed types are
| string | $type; |
| Claro_Validator_Exception | if $type is not supported |
Definition at line 115 of file validator.lib.php.
| static booleanString | ( | $ | value | ) | [static, private] |
Definition at line 142 of file validator.lib.php.
| static floatString | ( | $ | value | ) | [static, private] |
Definition at line 147 of file validator.lib.php.
| static integerString | ( | $ | value | ) | [static, private] |
Definition at line 152 of file validator.lib.php.
| isValid | ( | $ | value | ) |
Implements Claro_Validator.
Definition at line 130 of file validator.lib.php.
$supportedType [static, protected] |
array(
'alnum' => 'ctype_alnum',
'alpha' => 'ctype_alpha',
'array' => 'is_array',
'bool' => 'is_bool',
'boolstr' => array('Claro_Validator_ValueType', 'booleanString'),
'digit' => 'ctype_digit',
'float' => 'is_float',
'floatstr' => array('Claro_Validator_ValueType', 'floatString'),
'int' => 'is_int',
'intstr' => array('Claro_Validator_ValueType', 'integerString'),
'lower' => 'ctype_lower',
'null' => 'is_null',
'numeric' => 'is_numeric',
'object' => 'is_object',
'space' => 'ctype_space',
'string' => 'is_string',
'upper' => 'ctype_upper',
'xdigit' => 'ctype_xdigit',
)
Definition at line 69 of file validator.lib.php.
1.6.3