validate() public method
Validates a given value.
You may use this method to validate a value out of the context of a data model.
| public boolean validate ( $value, &$error = null ) | ||
|---|---|---|
| $value | mixed |
The data value to be validated. |
| $error | string |
The error message to be returned, if the validation fails. |
| return | boolean |
Whether the data is valid. |
Please login to continue.