Represents a parameter that has been validated.
More...
Represents a parameter that has been validated.
Definition at line 8 of file ValidationResult.php.
◆ __construct()
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.
◆ fail()
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.
◆ getError()
Elgg\Validation\ValidationResult::getError |
( |
| ) |
|
◆ getMessage()
Elgg\Validation\ValidationResult::getMessage |
( |
| ) |
|
◆ getName()
Elgg\Validation\ValidationResult::getName |
( |
| ) |
|
◆ getValue()
Elgg\Validation\ValidationResult::getValue |
( |
| ) |
|
◆ isValid()
Elgg\Validation\ValidationResult::isValid |
( |
| ) |
|
◆ pass()
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.
◆ $error
string Elgg\Validation\ValidationResult::$error = '' |
|
protected |
◆ $message
string Elgg\Validation\ValidationResult::$message = '' |
|
protected |
The documentation for this class was generated from the following file: