Definition at line 9 of file Parallel.php.
◆ __construct()
ILIAS\Refinery\Logical\Parallel::__construct |
( |
array |
$constraints, |
|
|
Data\Factory |
$data_factory, |
|
|
\ilLanguage |
$lng |
|
) |
| |
Definition at line 24 of file Parallel.php.
25 {
28 function ($value) {
30 $this->failed_constraints = array();
31 foreach ($this->constraints as $constraint) {
32 if (!$constraint->accepts($value)) {
33 $this->failed_constraints[] = $constraint;
35 }
36 }
37
39 },
40 function (
$txt, $value) {
42 foreach ($this->failed_constraints as $key => $constraint) {
43 $messages[] = $constraint->getErrorMessage($value);
44 }
45
47 },
48 $data_factory,
50 );
51 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
References ILIAS\Refinery\Logical\Parallel\$constraints, $lng, $messages, $ret, $txt, and ILIAS\GlobalScreen\Provider\__construct().
◆ $constraints
ILIAS\Refinery\Logical\Parallel::$constraints |
|
protected |
◆ $failed_constraints
ILIAS\Refinery\Logical\Parallel::$failed_constraints |
|
protected |
The documentation for this class was generated from the following file: