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

Public Member Functions

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

Detailed Description

Definition at line 27 of file LogicalOr.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 32 of file LogicalOr.php.

33 {
35 static function ($value) use ($other): bool {
36 foreach ($other as $constraint) {
37 if ($constraint->accepts($value)) {
38 return true;
39 }
40 }
41
42 return false;
43 },
44 static function ($value) use ($other): string {
45 $problems = [];
46
47 foreach ($other as $constraint) {
48 $problems[] = $constraint->getErrorMessage($value);
49 }
50
51 return 'Please fix one of these: ' . implode(', ', array_filter($problems));
52 },
53 $data_factory,
54 $lng
55 );
56 }
__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:

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