ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilCondition.php
Go to the documentation of this file.
1
<?
php
2
3
/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
4
11
class
ilCondition
12
{
16
protected
$trigger
;
17
21
protected
$operator
;
22
26
protected
$value
;
27
31
protected
$obligatory
;
32
36
protected
$id
;
37
41
public
function
__construct
(
ilConditionTrigger
$trigger
,
$operator
,
$value
= null)
42
{
43
$this->trigger =
$trigger
;
44
$this->
operator
=
$operator
;
45
$this->value =
$value
;
46
}
47
53
public
function
getTrigger
()
54
{
55
return
$this->trigger
;
56
}
57
63
public
function
getOperator
()
64
{
65
return
$this->operator
;
66
}
67
73
public
function
getValue
()
74
{
75
return
$this->value
;
76
}
77
84
public
function
withObligatory
(
$obligatory
)
85
{
86
$clone = clone $this;
87
$clone->obligatory =
$obligatory
;
88
return
$clone;
89
}
90
96
public
function
getObligatory
()
97
{
98
return
$this->obligatory
;
99
}
100
107
public
function
withId
(
$id
)
108
{
109
$clone = clone $this;
110
$clone->id =
$id
;
111
return
$clone;
112
}
113
119
public
function
getId
()
120
{
121
return
$this->id
;
122
}
123
}
ilCondition\getTrigger
getTrigger()
Get trigger.
Definition:
class.ilCondition.php:53
ilCondition\__construct
__construct(ilConditionTrigger $trigger, $operator, $value=null)
Constructor.
Definition:
class.ilCondition.php:41
ilCondition\getOperator
getOperator()
Get operator.
Definition:
class.ilCondition.php:63
ilCondition\$id
$id
Definition:
class.ilCondition.php:36
ilCondition\getValue
getValue()
Get value.
Definition:
class.ilCondition.php:73
ilCondition\withId
withId($id)
Set id.
Definition:
class.ilCondition.php:107
ilCondition\getObligatory
getObligatory()
Get obligatory.
Definition:
class.ilCondition.php:96
ilCondition\$operator
$operator
Definition:
class.ilCondition.php:21
ilCondition\$obligatory
$obligatory
Definition:
class.ilCondition.php:31
ilCondition\getId
getId()
Get id.
Definition:
class.ilCondition.php:119
ilCondition\$value
$value
Definition:
class.ilCondition.php:26
ilCondition
Condition class.
Definition:
class.ilCondition.php:11
ilConditionTrigger
Represents a condition trigger object.
Definition:
class.ilConditionTrigger.php:11
php
ilCondition\withObligatory
withObligatory($obligatory)
Set obligatory.
Definition:
class.ilCondition.php:84
ilCondition\$trigger
$trigger
Definition:
class.ilCondition.php:16
Services
Conditions
classes
class.ilCondition.php
Generated on Thu Jan 16 2025 19:02:19 for ILIAS by
1.8.13 (using
Doxyfile
)