$_rule
$_rule : string|callable
The method to be called for a given scope
ValidationRule object. Represents a validation method, error message and rules for applying such method to a field.
process(mixed $value, array $providers, array $context = array()) : boolean|string
Dispatches the validation rule to the given validator method and returns a boolean indicating whether the rule passed or not. If a string is returned it is assumed that the rule failed and the error message was given as a result.
mixed | $value | The data to validate |
array | $providers | associative array with objects or class names that will be passed as the last argument for the validation method |
array | $context | A key value list of data that could be used as context during validation. Recognized keys are:
|
when the supplied rule is not a valid callable for the configured scope
_skip(array $context) : boolean
Checks if the validation rule should be skipped
array | $context | A key value list of data that could be used as context during validation. Recognized keys are:
|
True if the ValidationRule should be skipped
Loading…