Definition at line 27 of file Parallel.php.
◆ __construct()
| ILIAS\Refinery\Logical\Parallel::__construct |
( |
array |
$constraints, |
|
|
Data\Factory |
$data_factory, |
|
|
\ILIAS\Language\Language |
$lng |
|
) |
| |
- Parameters
-
Definition at line 39 of file Parallel.php.
40 {
42 function ($value) use ($constraints): bool {
43 $ret = true;
44 $this->failed_constraints = [];
45 foreach ($constraints as $constraint) {
46 if (!$constraint->accepts($value)) {
47 $this->failed_constraints[] = $constraint;
48 $ret = false;
49 }
50 }
51
52 return $ret;
53 },
54 function ($txt, $value): string {
55 $messages = [];
56 foreach ($this->failed_constraints as $constraint) {
57 $messages[] = $constraint->getErrorMessage($value);
58 }
59
60 return implode(' ', $messages);
61 },
62 $data_factory,
64 );
65 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
References $lng, 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: