Definition at line 27 of file Parallel.php.
◆ __construct()
ILIAS\Refinery\Logical\Parallel::__construct |
( |
array |
$constraints, |
|
|
Data\Factory |
$data_factory, |
|
|
ilLanguage |
$lng |
|
) |
| |
- Parameters
-
| Constraint[] | $constraints |
Data\Factory | $data_factory | |
ilLanguage | $lng | |
Definition at line 42 of file Parallel.php.
References $lng, $messages, $txt, and ILIAS\GlobalScreen\Provider\__construct().
45 function ($value) use ($constraints):
bool {
47 $this->failed_constraints = [];
48 foreach ($constraints as $constraint) {
49 if (!$constraint->accepts($value)) {
50 $this->failed_constraints[] = $constraint;
57 function (
$txt, $value):
string {
59 foreach ($this->failed_constraints as $constraint) {
60 $messages[] = $constraint->getErrorMessage($value);
$messages
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
◆ $failed_constraints
array ILIAS\Refinery\Logical\Parallel::$failed_constraints |
|
protected |
The documentation for this class was generated from the following file: