Validator Class Reference
Detailed Description
Validator is is the single entry point for validation.
It chooses the configured validateType based on the validateTypeDesc parameter from the configuration section 'validators'.
Definition at line 24 of file Validator.php.
Static Public Member Functions | |
static | validate ($value, $validateTypeDesc, Message $message) |
Static Protected Member Functions | |
static | getValidateType ($validateTypeName) |
Member Function Documentation
|
static |
Validate the given value against the given validateType description.
- Parameters
-
$value The value to validate $validateTypeDesc A string in the form validateType:options, where validateType is a key in the configuration section 'validators' and options is a JSON encoded string as used in the 'restrictions_match' definition $message The Message instance used to provide translations
- Returns
- Boolean
Definition at line 35 of file Validator.php.
|
staticprotected |
Get the ValidateType instance for the given name.
- Parameters
-
$validateTypeName The validate type's name
- Returns
- ValidateType instance
Definition at line 54 of file Validator.php.