|
| | __construct (array $constraints, Data\Factory $data_factory, \ilLanguage $lng) |
| |
| | __construct (callable $is_ok, $error, Data\Factory $data_factory, \ilLanguage $lng) |
| | If $error is a callable it needs to take two parameters: More...
|
| |
| | check ($value) |
| | Checks the provided value.Should not throw if accepts($value).- Exceptions
-
UnexpectedValueException if value does not comply with encoded constraint. - Parameters
-
- Returns
- null
More...
|
| |
| | accepts ($value) |
| | Tells if the provided value complies.- Parameters
-
- Returns
- bool
More...
|
| |
| | problemWith ($value) |
| | Tells what the problem with the provided value is.Should return null if accepts($value).- Parameters
-
- Returns
- string|null
More...
|
| |
| | restrict (Result $result) |
| | Restricts a Result.Must do nothing with the result if $result->isError(). Must replace the result with an error according to problemWith() if !accepts($result->value()).- Parameters
-
- Returns
- Result
More...
|
| |
| | withProblemBuilder (callable $builder) |
| | Get a constraint like this one with a builder for a custom error message.problemWith() must return an error message according to the new builder for the new constraint.The builder needs to be callable that takes two parameters:- Parameters
-
- Returns
- Constraint
More...
|
| |
| | getErrorMessage ($value) |
| | Get the problem message. More...
|
| |
| | check ($value) |
| | Checks the provided value. More...
|
| |
| | accepts ($value) |
| | Tells if the provided value complies. More...
|
| |
| | problemWith ($value) |
| | Tells what the problem with the provided value is. More...
|
| |
| | restrict (Result $result) |
| | Restricts a Result. More...
|
| |
| | withProblemBuilder (callable $builder) |
| | Get a constraint like this one with a builder for a custom error message. More...
|
| |
|
| | getLngClosure () |
| | Get the closure to be passed to the error-function that does i18n and sprintf. More...
|
| |
Definition at line 10 of file Parallel.php.
◆ __construct()
| ILIAS\Validation\Constraints\Parallel::__construct |
( |
array |
$constraints, |
|
|
Data\Factory |
$data_factory, |
|
|
\ilLanguage |
$lng |
|
) |
| |
◆ $constraints
| ILIAS\Validation\Constraints\Parallel::$constraints |
|
protected |
◆ $failed_constraints
| ILIAS\Validation\Constraints\Parallel::$failed_constraints |
|
protected |
The documentation for this class was generated from the following file: