ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
class.ilCondition.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
26
class
ilCondition
27
{
28
protected
ilConditionTrigger
$trigger
;
29
protected
string
$operator
;
30
protected
?
string
$value
;
31
protected
bool
$obligatory
=
false
;
32
protected
int
$id
;
33
34
public
function
__construct
(
ilConditionTrigger
$trigger
,
string
$operator
, ?
string
$value
=
null
)
35
{
36
$this->trigger =
$trigger
;
37
$this->
operator
=
$operator
;
38
$this->value =
$value
;
39
}
40
41
public
function
getTrigger
():
ilConditionTrigger
42
{
43
return
$this->trigger
;
44
}
45
46
public
function
getOperator
(): string
47
{
48
return
$this->operator
;
49
}
50
51
public
function
getValue
(): ?string
52
{
53
return
$this->value
;
54
}
55
56
public
function
withObligatory
(
bool
$obligatory
):
ilCondition
57
{
58
$clone = clone $this;
59
$clone->obligatory =
$obligatory
;
60
return
$clone;
61
}
62
63
public
function
getObligatory
(): bool
64
{
65
return
$this->obligatory
;
66
}
67
68
public
function
withId
(
int
$id
):
ilCondition
69
{
70
$clone = clone $this;
71
$clone->id =
$id
;
72
return
$clone;
73
}
74
75
public
function
getId
():
int
76
{
77
return
$this->id
;
78
}
79
}
ilConditionTrigger
Represents a condition trigger object.
Definition:
class.ilConditionTrigger.php:27
ilCondition
Condition class.
Definition:
class.ilCondition.php:27
ilCondition\$trigger
ilConditionTrigger $trigger
Definition:
class.ilCondition.php:28
ilCondition\getId
getId()
Definition:
class.ilCondition.php:75
ilCondition\getOperator
getOperator()
Definition:
class.ilCondition.php:46
ilCondition\withObligatory
withObligatory(bool $obligatory)
Definition:
class.ilCondition.php:56
ilCondition\getObligatory
getObligatory()
Definition:
class.ilCondition.php:63
ilCondition\$value
string $value
Definition:
class.ilCondition.php:30
ilCondition\__construct
__construct(ilConditionTrigger $trigger, string $operator, ?string $value=null)
Definition:
class.ilCondition.php:34
ilCondition\$operator
string $operator
Definition:
class.ilCondition.php:29
ilCondition\getTrigger
getTrigger()
Definition:
class.ilCondition.php:41
ilCondition\getValue
getValue()
Definition:
class.ilCondition.php:51
ilCondition\withId
withId(int $id)
Definition:
class.ilCondition.php:68
ilCondition\$id
int $id
Definition:
class.ilCondition.php:32
ilCondition\$obligatory
bool $obligatory
Definition:
class.ilCondition.php:31
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
components
ILIAS
Conditions
classes
class.ilCondition.php
Generated on Sat Oct 18 2025 23:02:47 for ILIAS by
1.9.4 (using
Doxyfile
)