Definition at line 26 of file Parallel.php.
◆ __construct()
ILIAS\Refinery\Logical\Parallel::__construct |
( |
array |
$constraints, |
|
|
Data\Factory |
$data_factory, |
|
|
\ILIAS\Language\Language |
$lng |
|
) |
| |
- Parameters
-
Constraint[] | $constraints | |
Data\Factory | $data_factory | |
\ILIAS\Language\Language | $lng | |
Definition at line 41 of file Parallel.php.
42 {
44 function ($value) use ($constraints): bool {
45 $ret = true;
46 $this->failed_constraints = [];
47 foreach ($constraints as $constraint) {
48 if (!$constraint->accepts($value)) {
49 $this->failed_constraints[] = $constraint;
50 $ret = false;
51 }
52 }
53
54 return $ret;
55 },
56 function (
$txt, $value):
string {
58 foreach ($this->failed_constraints as $constraint) {
59 $messages[] = $constraint->getErrorMessage($value);
60 }
61
63 },
64 $data_factory,
66 );
67 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
References $lng, $messages, $txt, and ILIAS\GlobalScreen\Provider\__construct().
◆ $failed_constraints
array ILIAS\Refinery\Logical\Parallel::$failed_constraints |
|
protected |
The documentation for this class was generated from the following file: