ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
IsNull.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 2018 Fabian Schmid <fs@studer-raimann.ch> Extended GPL, see docs/LICENSE */
3
4
namespace
ILIAS\Refinery
;
5
6
use
ILIAS\Refinery\Custom\Constraint
as
CustomConstraint
;
7
use
ILIAS\Data
;
8
use
ILIAS\Refinery\Constraint
;
9
17
class
IsNull
extends
CustomConstraint
implements
Constraint
18
{
19
25
public
function
__construct
(Data\
Factory
$data_factory
, \
ilLanguage
$lng
)
26
{
27
parent::__construct
(
28
function
($value) {
29
return
is_null($value);
30
},
31
function
(
$txt
, $value) {
32
return
$txt
(
"not_a_null"
, gettype($value));
33
},
34
$data_factory
,
35
$lng
36
);
37
}
38
}
ILIAS\Refinery\Custom\Constraint\$data_factory
$data_factory
Definition:
Constraint.php:20
ILIAS\Refinery
Definition:
Constraint.php:5
ILIAS\Refinery\Constraint
A constraint encodes some resrtictions on values.
Definition:
Constraint.php:14
ILIAS\Refinery\IsNull
Definition:
IsNull.php:17
Constraint
ILIAS\Refinery\Custom\Constraint\$lng
$lng
Definition:
Constraint.php:25
ILIAS\Refinery\IsNull\__construct
__construct(Data\Factory $data_factory, \ilLanguage $lng)
IsNull constructor.
Definition:
IsNull.php:25
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:19
$txt
$txt
Definition:
error.php:13
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:30
ilLanguage
language handling
Definition:
class.ilLanguage.php:26
Constraint
ILIAS\Data
Definition:
Alphanumeric.php:10
src
Refinery
IsNull.php
Generated on Tue Apr 8 2025 20:01:33 for ILIAS by
1.8.13 (using
Doxyfile
)