Public Member Functions | |
| __construct (Claro_Input $input) | |
| setValidator ($name, Claro_Validator $validator) | |
| setValidatorForAll (Claro_Validator $validator) | |
| get ($name, $default=null) | |
| getMandatory ($name) | |
| validate ($name, $tainted) | |
Protected Attributes | |
| $validators | |
| $validatorsForAll | |
| $input | |
Data input class with filters callback for validation
Definition at line 114 of file input.lib.php.
| __construct | ( | Claro_Input $ | input | ) |
| Claro_Input | $input |
Definition at line 123 of file input.lib.php.
| get | ( | $ | name, | |
| $ | default = null | |||
| ) |
| Claro_Input_Exception | if $value does not pass the validator |
Implements Claro_Input.
Definition at line 177 of file input.lib.php.
| getMandatory | ( | $ | name | ) |
| Claro_Input_Exception | if $value does not pass the validator |
Implements Claro_Input.
Definition at line 196 of file input.lib.php.
| setValidator | ( | $ | name, | |
| Claro_Validator $ | validator | |||
| ) |
Set a validator for the given variable
| string | $name variable name | |
| Claro_Validator | $validator validator object |
| Claro_Input_Exception | if the filter callback is not callable |
Definition at line 136 of file input.lib.php.
| setValidatorForAll | ( | Claro_Validator $ | validator | ) |
Set a validator for all variables
| string | $name variable name | |
| Claro_Validator | $validator validator object |
| Claro_Input_Exception | if the filter callback is not callable |
Definition at line 160 of file input.lib.php.
| validate | ( | $ | name, | |
| $ | tainted | |||
| ) |
| string | $name | |
| mixed | $tainted value |
| Claro_Validator_Exception | if $value does not pass the filter for $name |
Definition at line 209 of file input.lib.php.
$input [protected] |
Definition at line 118 of file input.lib.php.
$validators [protected] |
Definition at line 116 of file input.lib.php.
$validatorsForAll [protected] |
Definition at line 117 of file input.lib.php.
1.6.3