ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ILIAS\Refinery\Logical\Parallel Class Reference
+ Inheritance diagram for ILIAS\Refinery\Logical\Parallel:
+ Collaboration diagram for ILIAS\Refinery\Logical\Parallel:

Public Member Functions

 __construct (array $constraints, Data\Factory $data_factory, \ILIAS\Language\Language $lng)
 

Protected Attributes

array $failed_constraints
 

Detailed Description

Definition at line 27 of file Parallel.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Refinery\Logical\Parallel::__construct ( array  $constraints,
Data\Factory  $data_factory,
\ILIAS\Language\Language  $lng 
)
Parameters
Constraint[]$constraints

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,
63 $lng
64 );
65 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $lng
Definition: privfeed.php:31

References $lng, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Field Documentation

◆ $failed_constraints

array ILIAS\Refinery\Logical\Parallel::$failed_constraints
protected

Definition at line 34 of file Parallel.php.


The documentation for this class was generated from the following file: