| Elgg
    Version master
    | 
Represents a set of validated parameters. More...
| Public Member Functions | |
| pass ($name, $value, $message='') | |
| Add parameter and set it as valid.  More... | |
| fail ($name, $value, $error='') | |
| Add parameter and set it as invalid.  More... | |
| all () | |
| Get all results in this bag.  More... | |
| getFailures () | |
| Check if the bag has parameters that failed validation.  More... | |
| Protected Attributes | |
| $results = [] | |
Represents a set of validated parameters.
Definition at line 8 of file ValidationResults.php.
| Elgg\Validation\ValidationResults::all | ( | ) | 
Get all results in this bag.
Definition at line 55 of file ValidationResults.php.
| Elgg\Validation\ValidationResults::fail | ( | $name, | |
| $value, | |||
| $error = '' | |||
| ) | 
Add parameter and set it as invalid.
| string | $name | Parameter name | 
| mixed | $value | Parameter value | 
| string | $error | Error message | 
Definition at line 42 of file ValidationResults.php.
| Elgg\Validation\ValidationResults::getFailures | ( | ) | 
Check if the bag has parameters that failed validation.
Definition at line 63 of file ValidationResults.php.
| Elgg\Validation\ValidationResults::pass | ( | $name, | |
| $value, | |||
| $message = '' | |||
| ) | 
Add parameter and set it as valid.
| string | $name | Parameter name | 
| mixed | $value | Parameter value | 
| string | $message | Success message | 
Definition at line 24 of file ValidationResults.php.
| 
 | protected | 
Definition at line 13 of file ValidationResults.php.