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.ilLSPostCondition.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
28
class
ilLSPostCondition
29
{
30
protected
static
$known_operators
= [
31
"always"
,
32
"failed"
,
33
"finished"
,
34
"learning_progress"
,
35
"not_finished"
,
36
"passed"
37
];
38
39
protected
int
$ref_id
;
40
protected
string
$operator
;
41
protected
?
string
$value
;
42
43
public
function
__construct
(
44
int
$ref_id,
45
string
$operator,
46
?
string
$value = null
47
) {
48
if
(!in_array($operator, self::$known_operators)) {
49
throw
new \InvalidArgumentException(
50
"Unknown operator: $operator"
51
);
52
}
53
54
$this->ref_id =
$ref_id
;
55
$this->
operator
=
$operator
;
56
$this->value =
$value
;
57
}
58
59
public
function
getRefId
():
int
60
{
61
return
$this->ref_id
;
62
}
63
64
public
function
withRefId
(
int
$ref_id): self
65
{
66
$clone = clone $this;
67
$clone->ref_id =
$ref_id
;
68
return
$clone;
69
}
70
71
public
function
getConditionOperator
(): string
72
{
73
return
$this->operator
;
74
}
75
76
public
function
withConditionOperator
(
string
$operator):
ilLSPostCondition
77
{
78
if
(!in_array($operator, self::$known_operators)) {
79
throw
new \InvalidArgumentException(
80
"Unknown operator: $operator"
81
);
82
}
83
84
$clone = clone $this;
85
$clone->operator =
$operator
;
86
return
$clone;
87
}
88
89
public
function
getValue
(): ?string
90
{
91
return
$this->value
;
92
}
93
94
public
function
withValue
(
string
$value):
ilLSPostCondition
95
{
96
$clone = clone $this;
97
$clone->value =
$value
;
98
return
$clone;
99
}
100
}
ilLSPostCondition\getValue
getValue()
Definition:
class.ilLSPostCondition.php:89
ilLSPostCondition\withConditionOperator
withConditionOperator(string $operator)
Definition:
class.ilLSPostCondition.php:76
ilLSPostCondition\$known_operators
static $known_operators
Definition:
class.ilLSPostCondition.php:30
ilLSPostCondition\$ref_id
int $ref_id
Definition:
class.ilLSPostCondition.php:39
ilLSPostCondition\__construct
__construct(int $ref_id, string $operator,?string $value=null)
Definition:
class.ilLSPostCondition.php:43
ilLSPostCondition\$operator
string $operator
Definition:
class.ilLSPostCondition.php:40
ilLSPostCondition\getRefId
getRefId()
Definition:
class.ilLSPostCondition.php:59
ilLSPostCondition
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilLSPostCondition.php:28
ilLSPostCondition\$value
string $value
Definition:
class.ilLSPostCondition.php:41
ilLSPostCondition\withValue
withValue(string $value)
Definition:
class.ilLSPostCondition.php:94
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ilLSPostCondition\getConditionOperator
getConditionOperator()
Definition:
class.ilLSPostCondition.php:71
ilLSPostCondition\withRefId
withRefId(int $ref_id)
Definition:
class.ilLSPostCondition.php:64
Modules
LearningSequence
classes
PostConditions
class.ilLSPostCondition.php
Generated on Tue Apr 1 2025 22:01:31 for ILIAS by
1.8.13 (using
Doxyfile
)