Public Member Functions | |
| __construct () | |
| Create a new validator instance. | |
| is_valid ($value) | |
| Checks for validity. | |
This class does nothing by default. Real validator implementations should subclass this class and implement at least the is_valid() method.
Definition at line 19 of file validator/base.lib.php.
| AnewtValidator::__construct | ( | ) |
Create a new validator instance.
This method can be overridden in subclasses, e.g. to handle some values that influence the validator's behaviour.
Make sure to call the parent constructor from your custom contructor!
Reimplemented in AnewtValidatorEmail.
Definition at line 29 of file validator/base.lib.php.
| AnewtValidator::is_valid | ( | $ | value | ) | [abstract] |
Checks for validity.
The return value should be true for valid values, and false otherwise.
| $value | The value to check for validity. |
Reimplemented in AnewtValidatorDate, AnewtValidatorInteger, AnewtValidatorFloat, AnewtValidatorLength, AnewtValidatorPreg, and AnewtValidatorRepeat.
1.5.9