Represents a parameter that has been validated.
More...
Represents a parameter that has been validated.
Definition at line 8 of file ValidationResult.php.
Elgg\Validation\ValidationResult::__construct |
( |
protected string |
$name, |
|
|
protected |
$value |
|
) |
| |
Constructor.
- Parameters
-
string | $name | Parameter name |
mixed | $value | Parameter value |
Definition at line 20 of file ValidationResult.php.
Elgg\Validation\ValidationResult::fail |
( |
string |
$error = '' | ) |
|
Set parameter value as failing validation.
- Parameters
-
string | $error | Optional error message |
- Returns
- void
Definition at line 41 of file ValidationResult.php.
Elgg\Validation\ValidationResult::getError |
( |
| ) |
|
Elgg\Validation\ValidationResult::getMessage |
( |
| ) |
|
Elgg\Validation\ValidationResult::getName |
( |
| ) |
|
Elgg\Validation\ValidationResult::getValue |
( |
| ) |
|
Elgg\Validation\ValidationResult::isValid |
( |
| ) |
|
Elgg\Validation\ValidationResult::pass |
( |
string |
$message = '' | ) |
|
Set parameter value as passing validation.
- Parameters
-
string | $message | Optional message |
- Returns
- void
Definition at line 30 of file ValidationResult.php.
string Elgg\Validation\ValidationResult::$error = '' |
|
protected |
string Elgg\Validation\ValidationResult::$message = '' |
|
protected |
The documentation for this class was generated from the following file: