ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ILIAS\Refinery\Logical\Not Class Reference
+ Inheritance diagram for ILIAS\Refinery\Logical\Not:
+ Collaboration diagram for ILIAS\Refinery\Logical\Not:

Public Member Functions

 __construct (Constraint $constraint, Data\Factory $data_factory, \ilLanguage $lng)
 
- Public Member Functions inherited from ILIAS\Refinery\Constraint
 check ($value)
 Checks the provided value. More...
 
 accepts ($value)
 Tells if the provided value complies. More...
 
 problemWith ($value)
 Tells what the problem with the provided value is. More...
 
 applyTo (Result $result)
 Restricts a Result. More...
 
 withProblemBuilder (callable $builder)
 Get a constraint like this one with a builder for a custom error message. More...
 
- Public Member Functions inherited from ILIAS\Refinery\Transformation
 transform ($from)
 Perform the transformation. More...
 
 __invoke ($from)
 Transformations should be callable. More...
 

Protected Attributes

 $constraint
 

Detailed Description

Definition at line 9 of file Not.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Refinery\Logical\Not::__construct ( Constraint  $constraint,
Data\Factory  $data_factory,
\ilLanguage  $lng 
)

Definition at line 16 of file Not.php.

References ILIAS\Refinery\Logical\Not\$constraint, $lng, $txt, and ILIAS\GlobalScreen\Provider\__construct().

17  {
18  $this->constraint = $constraint;
20  function ($value) {
21  return !$this->constraint->accepts($value);
22  },
23  function ($txt, $value) {
24  return $txt("not_generic", $this->constraint->getErrorMessage($value));
25  },
26  $data_factory,
27  $lng
28  );
29  }
$lng
$txt
Definition: error.php:13
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Field Documentation

◆ $constraint

ILIAS\Refinery\Logical\Not::$constraint
protected

Definition at line 14 of file Not.php.

Referenced by ILIAS\Refinery\Logical\Not\__construct().


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