Method |
Description |
|
getError ( string $field ) : string |
Gets an error message for the given field. Will return null if there is no message. |
|
getErrors ( ) : string[] |
Returns a list of all validation errors. |
|
getFailedRules ( ) : Fuel\Validation\RuleInterface[] |
Returns a list of rules that caused fields to fail, indexed by the field name. |
|
getValidated ( ) : string[] |
Returns a list of fields that where successfully validated. |
|
isValid ( ) : boolean |
True if the validation passed |
|
merge ( Fuel\Validation\ResultInterface $resultInterface, string $fieldPrefix = '' ) |
Merges the result from the given interface to this result. |
|
setError ( string $field, string $message, string $rule ) |
Sets the message for a given field. |
|
setResult ( boolean $isValid ) |
Sets a true false flag for if the validation result is successful or not. |
|
setValidated ( string $field ) |
Sets the name of a field that has passed validation |
|