ILIAS
release_8 Revision v8.24
◀ ilDoc Overview
IsNull.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
21
namespace
ILIAS\Refinery
;
22
23
use
ILIAS\Refinery\Custom\Constraint
;
24
use
ILIAS\Data
;
25
use
ilLanguage
;
26
27
class
IsNull
extends
Constraint
28
{
29
public
function
__construct
(Data\
Factory
$data_factory,
ilLanguage
$lng
)
30
{
31
parent::__construct
(
32
static
function
($value):
bool
{
33
return
is_null($value);
34
},
35
static
function
(
$txt
, $value):
string
{
36
return
$txt
(
"not_a_null"
, gettype($value));
37
},
38
$data_factory,
39
$lng
40
);
41
}
42
}
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:21
ILIAS\Refinery\Custom\Constraint
Definition:
Constraint.php:32
ILIAS\Refinery\IsNull
Definition:
IsNull.php:28
ILIAS\Refinery\IsNull\__construct
__construct(Data\Factory $data_factory, ilLanguage $lng)
Definition:
IsNull.php:29
ilLanguage
language handling
Definition:
class.ilLanguage.php:44
$txt
$txt
Definition:
error.php:13
ILIAS\Refinery\Constraint
A constraint encodes some resrtictions on values.
Definition:
Constraint.php:32
ILIAS\Data
Definition:
Alphanumeric.php:11
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Definition:
PluginProviderHelper.php:37
ILIAS\Refinery
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
ByTrying.php:21
$lng
$lng
Definition:
save_question_post_data.php:24
src
Refinery
IsNull.php
Generated on Sat Nov 1 2025 22:01:59 for ILIAS by
1.9.4 (using
Doxyfile
)