ILIAS
trunk Revision v11.0_alpha-1689-g66c127b4ae8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
class.ilAssQuestionSolutionComparisonExpression.php
Go to the documentation of this file.
1
<?php
2
25
class
ilAssQuestionSolutionComparisonExpression
26
{
30
protected
$db
;
31
35
private
$questionId
;
36
40
private
$skillBaseId
;
41
45
private
$skillTrefId
;
46
50
private
$orderIndex
;
51
55
private
$expression
;
56
60
private
$points
;
61
65
public
function
__construct
()
66
{
67
$this->questionId =
null
;
68
$this->skillBaseId =
null
;
69
$this->skillTrefId =
null
;
70
$this->orderIndex =
null
;
71
$this->expression =
null
;
72
$this->points =
null
;
73
}
74
75
public
function
save
(): void
76
{
77
$this->db->replace(
78
'qpl_qst_skl_sol_expr'
,
79
[
80
'question_fi'
=> [
'integer'
, $this->
getQuestionId
()],
81
'skill_base_fi'
=> [
'integer'
, $this->
getSkillBaseId
()],
82
'skill_tref_fi'
=> [
'integer'
, $this->
getSkillTrefId
()],
83
'order_index'
=> [
'integer'
, $this->
getOrderIndex
()]
84
],
85
[
86
'expression'
=> [
'text'
, $this->
getExpression
()],
87
'points'
=> [
'integer'
, $this->
getPoints
()]
88
]
89
);
90
}
91
95
public
function
getDb
():
ilDBInterface
96
{
97
return
$this->db
;
98
}
99
103
public
function
setDb
(
$db
): void
104
{
105
$this->db =
$db
;
106
}
107
111
public
function
getQuestionId
(): ?
int
112
{
113
return
$this->questionId
;
114
}
115
119
public
function
setQuestionId
(
$questionId
): void
120
{
121
$this->questionId =
$questionId
;
122
}
123
127
public
function
getSkillBaseId
(): ?
int
128
{
129
return
$this->skillBaseId
;
130
}
131
135
public
function
setSkillBaseId
(
$skillBaseId
): void
136
{
137
$this->skillBaseId =
$skillBaseId
;
138
}
139
143
public
function
getSkillTrefId
(): ?
int
144
{
145
return
$this->skillTrefId
;
146
}
147
151
public
function
setSkillTrefId
(
$skillTrefId
): void
152
{
153
$this->skillTrefId =
$skillTrefId
;
154
}
155
159
public
function
getOrderIndex
(): ?
int
160
{
161
return
$this->orderIndex
;
162
}
163
167
public
function
setOrderIndex
(
$orderIndex
): void
168
{
169
$this->orderIndex =
$orderIndex
;
170
}
171
175
public
function
getExpression
(): ?string
176
{
177
return
$this->expression
;
178
}
179
183
public
function
setExpression
(
$expression
): void
184
{
185
$this->expression =
$expression
;
186
}
187
191
public
function
getPoints
(): ?
int
192
{
193
return
$this->points
;
194
}
195
199
public
function
setPoints
(
$points
): void
200
{
201
$this->points =
$points
;
202
}
203
207
public
function
initInstanceFromArray
(
$data
): void
208
{
209
$this->
setQuestionId
(
$data
[
'question_fi'
]);
210
$this->
setSkillBaseId
(
$data
[
'skill_base_fi'
]);
211
$this->
setSkillTrefId
(
$data
[
'skill_tref_fi'
]);
212
213
$this->
setOrderIndex
(
$data
[
'order_index'
]);
214
$this->
setExpression
(
$data
[
'expression'
]);
215
$this->
setPoints
(
$data
[
'points'
]);
216
}
217
}
$data
$data
Definition:
ltiregistration.php:29
ilAssQuestionSolutionComparisonExpression\setDb
setDb($db)
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:103
ilAssQuestionSolutionComparisonExpression\$skillBaseId
$skillBaseId
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:40
ilAssQuestionSolutionComparisonExpression\$questionId
$questionId
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:35
ilAssQuestionSolutionComparisonExpression\getSkillTrefId
getSkillTrefId()
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:143
ilAssQuestionSolutionComparisonExpression\getOrderIndex
getOrderIndex()
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:159
ilAssQuestionSolutionComparisonExpression
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:25
ilAssQuestionSolutionComparisonExpression\setSkillBaseId
setSkillBaseId($skillBaseId)
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:135
ilAssQuestionSolutionComparisonExpression\setSkillTrefId
setSkillTrefId($skillTrefId)
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:151
ilAssQuestionSolutionComparisonExpression\$expression
$expression
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:55
ilAssQuestionSolutionComparisonExpression\getPoints
getPoints()
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:191
ilAssQuestionSolutionComparisonExpression\setOrderIndex
setOrderIndex($orderIndex)
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:167
ilAssQuestionSolutionComparisonExpression\__construct
__construct()
Constructor.
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:65
ilAssQuestionSolutionComparisonExpression\$skillTrefId
$skillTrefId
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:45
ilAssQuestionSolutionComparisonExpression\$orderIndex
$orderIndex
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:50
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:142
ilAssQuestionSolutionComparisonExpression\save
save()
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:75
ilAssQuestionSolutionComparisonExpression\getExpression
getExpression()
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:175
ilAssQuestionSolutionComparisonExpression\setQuestionId
setQuestionId($questionId)
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:119
ilAssQuestionSolutionComparisonExpression\initInstanceFromArray
initInstanceFromArray($data)
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:207
ilAssQuestionSolutionComparisonExpression\setPoints
setPoints($points)
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:199
ilAssQuestionSolutionComparisonExpression\$points
$points
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:60
ilDBInterface
ilAssQuestionSolutionComparisonExpression\$db
$db
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:30
ilAssQuestionSolutionComparisonExpression\getDb
getDb()
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:95
ilAssQuestionSolutionComparisonExpression\getQuestionId
getQuestionId()
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:111
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ilAssQuestionSolutionComparisonExpression\getSkillBaseId
getSkillBaseId()
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:127
ilAssQuestionSolutionComparisonExpression\setExpression
setExpression($expression)
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:183
components
ILIAS
TestQuestionPool
classes
class.ilAssQuestionSolutionComparisonExpression.php
Generated on Wed Apr 2 2025 23:03:52 for ILIAS by
1.8.13 (using
Doxyfile
)