ILIAS
release_8 Revision v8.19
◀ 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
n
o
p
r
s
t
u
v
w
x
+
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
j
l
m
p
s
t
u
+
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
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilCondition.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
/******************************************************************************
6
*
7
* This file is part of ILIAS, a powerful learning management system
8
* published by ILIAS open source e-Learning e.V.
9
*
10
* ILIAS is licensed with the GPL-3.0,
11
* see https://www.gnu.org/licenses/gpl-3.0.en.html
12
* You should have received a copy of said license along with the
13
* source code, too.
14
*
15
* If this is not the case or you just want to try ILIAS, you'll find
16
* us at:
17
* https://www.ilias.de
18
* https://github.com/ILIAS-eLearning
19
*
20
*****************************************************************************/
21
27
class
ilCondition
28
{
29
protected
ilConditionTrigger
$trigger
;
30
protected
string
$operator
;
31
protected
?
string
$value
;
32
protected
bool
$obligatory
=
false
;
33
protected
int
$id
;
34
35
public
function
__construct
(
ilConditionTrigger
$trigger,
string
$operator, ?
string
$value = null)
36
{
37
$this->trigger =
$trigger
;
38
$this->
operator
=
$operator
;
39
$this->value =
$value
;
40
}
41
42
public
function
getTrigger
():
ilConditionTrigger
43
{
44
return
$this->trigger
;
45
}
46
47
public
function
getOperator
(): string
48
{
49
return
$this->operator
;
50
}
51
52
public
function
getValue
(): ?string
53
{
54
return
$this->value
;
55
}
56
57
public
function
withObligatory
(
bool
$obligatory):
ilCondition
58
{
59
$clone = clone $this;
60
$clone->obligatory =
$obligatory
;
61
return
$clone;
62
}
63
64
public
function
getObligatory
(): bool
65
{
66
return
$this->obligatory
;
67
}
68
69
public
function
withId
(
int
$id):
ilCondition
70
{
71
$clone = clone $this;
72
$clone->id =
$id
;
73
return
$clone;
74
}
75
76
public
function
getId
():
int
77
{
78
return
$this->id
;
79
}
80
}
ilCondition\getTrigger
getTrigger()
Definition:
class.ilCondition.php:42
ilCondition\getOperator
getOperator()
Definition:
class.ilCondition.php:47
ilCondition\getValue
getValue()
Definition:
class.ilCondition.php:52
ilCondition\getObligatory
getObligatory()
Definition:
class.ilCondition.php:64
ilCondition\getId
getId()
Definition:
class.ilCondition.php:76
ilCondition\withId
withId(int $id)
Definition:
class.ilCondition.php:69
ilCondition\$obligatory
bool $obligatory
Definition:
class.ilCondition.php:32
ilCondition
Condition class.
Definition:
class.ilCondition.php:27
ilConditionTrigger
Represents a condition trigger object.
Definition:
class.ilConditionTrigger.php:27
ilCondition\$operator
string $operator
Definition:
class.ilCondition.php:30
ilCondition\$value
string $value
Definition:
class.ilCondition.php:31
ilCondition\withObligatory
withObligatory(bool $obligatory)
Definition:
class.ilCondition.php:57
ilCondition\$id
int $id
Definition:
class.ilCondition.php:33
ilCondition\__construct
__construct(ilConditionTrigger $trigger, string $operator,?string $value=null)
Definition:
class.ilCondition.php:35
ilCondition\$trigger
ilConditionTrigger $trigger
Definition:
class.ilCondition.php:29
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
Services
Conditions
classes
class.ilCondition.php
Generated on Sun Apr 6 2025 22:02:00 for ILIAS by
1.8.13 (using
Doxyfile
)