ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\Refinery\IsNull Class Reference
+ Inheritance diagram for ILIAS\Refinery\IsNull:
+ Collaboration diagram for ILIAS\Refinery\IsNull:

Public Member Functions

 __construct (Data\Factory $data_factory, \ILIAS\Language\Language $lng)
 
- Public Member Functions inherited from ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint
 __construct (callable $is_ok, $error, Data\Factory $data_factory, \ILIAS\Language\Language $lng)
 If $error is a callable it needs to take two parameters: More...
 
 check ($value)
 
 accepts ($value)
 
 problemWith ($value)
 
 applyTo (Result $result)
 
- Public Member Functions inherited from ILIAS\Refinery\Constraint
 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...
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint
 getError ()
 
- Protected Attributes inherited from ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint
Data Factory $data_factory
 
ILIAS Language Language $lng
 
 $is_ok
 
 $error
 

Detailed Description

Definition at line 26 of file IsNull.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Refinery\IsNull::__construct ( Data\Factory  $data_factory,
\ILIAS\Language\Language  $lng 
)

Definition at line 28 of file IsNull.php.

References ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint\$data_factory, ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint\$lng, $txt, and ILIAS\GlobalScreen\Provider\__construct().

29  {
31  static function ($value): bool {
32  return is_null($value);
33  },
34  static function ($txt, $value): string {
35  return $txt("not_a_null", gettype($value));
36  },
38  $lng
39  );
40  }
$txt
Definition: error.php:31
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

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