ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilAssQuestionSolutionComparisonExpression.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
11
class
ilAssQuestionSolutionComparisonExpression
12
{
16
protected
$db
;
17
21
private
$questionId
;
22
26
private
$skillBaseId
;
27
31
private
$skillTrefId
;
32
36
private
$orderIndex
;
37
41
private
$expression
;
42
46
private
$points
;
47
51
public
function
__construct
()
52
{
53
$this->questionId = null;
54
$this->skillBaseId = null;
55
$this->skillTrefId = null;
56
$this->orderIndex = null;
57
$this->expression = null;
58
$this->points = null;
59
}
60
61
public
function
save
()
62
{
63
$this->db->replace(
64
'qpl_qst_skl_sol_expr'
,
65
array(
66
'question_fi'
=> array(
'integer'
, $this->
getQuestionId
()),
67
'skill_base_fi'
=> array(
'integer'
, $this->
getSkillBaseId
()),
68
'skill_tref_fi'
=> array(
'integer'
, $this->
getSkillTrefId
()),
69
'order_index'
=> array(
'integer'
, $this->
getOrderIndex
())
70
),
71
array(
72
'expression'
=> array(
'text'
, $this->
getExpression
()),
73
'points'
=> array(
'integer'
, $this->
getPoints
())
74
)
75
);
76
}
77
81
public
function
getDb
()
82
{
83
return
$this->db
;
84
}
85
89
public
function
setDb
(
$db
)
90
{
91
$this->db =
$db
;
92
}
93
97
public
function
getQuestionId
()
98
{
99
return
$this->questionId
;
100
}
101
105
public
function
setQuestionId
(
$questionId
)
106
{
107
$this->questionId =
$questionId
;
108
}
109
113
public
function
getSkillBaseId
()
114
{
115
return
$this->skillBaseId
;
116
}
117
121
public
function
setSkillBaseId
(
$skillBaseId
)
122
{
123
$this->skillBaseId =
$skillBaseId
;
124
}
125
129
public
function
getSkillTrefId
()
130
{
131
return
$this->skillTrefId
;
132
}
133
137
public
function
setSkillTrefId
(
$skillTrefId
)
138
{
139
$this->skillTrefId =
$skillTrefId
;
140
}
141
145
public
function
getOrderIndex
()
146
{
147
return
$this->orderIndex
;
148
}
149
153
public
function
setOrderIndex
(
$orderIndex
)
154
{
155
$this->orderIndex =
$orderIndex
;
156
}
157
161
public
function
getExpression
()
162
{
163
return
$this->expression
;
164
}
165
169
public
function
setExpression
(
$expression
)
170
{
171
$this->expression =
$expression
;
172
}
173
177
public
function
getPoints
()
178
{
179
return
$this->points
;
180
}
181
185
public
function
setPoints
(
$points
)
186
{
187
$this->points =
$points
;
188
}
189
193
public
function
initInstanceFromArray
(
$data
)
194
{
195
$this->
setQuestionId
(
$data
[
'question_fi'
]);
196
$this->
setSkillBaseId
(
$data
[
'skill_base_fi'
]);
197
$this->
setSkillTrefId
(
$data
[
'skill_tref_fi'
]);
198
199
$this->
setOrderIndex
(
$data
[
'order_index'
]);
200
$this->
setExpression
(
$data
[
'expression'
]);
201
$this->
setPoints
(
$data
[
'points'
]);
202
}
203
}
ilAssQuestionSolutionComparisonExpression\setDb
setDb($db)
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:89
ilAssQuestionSolutionComparisonExpression\$skillBaseId
$skillBaseId
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:26
ilAssQuestionSolutionComparisonExpression\$questionId
$questionId
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:21
ilAssQuestionSolutionComparisonExpression\getSkillTrefId
getSkillTrefId()
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:129
ilAssQuestionSolutionComparisonExpression\getOrderIndex
getOrderIndex()
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:145
ilAssQuestionSolutionComparisonExpression
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:11
ilAssQuestionSolutionComparisonExpression\setSkillBaseId
setSkillBaseId($skillBaseId)
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:121
ilAssQuestionSolutionComparisonExpression\setSkillTrefId
setSkillTrefId($skillTrefId)
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:137
ilAssQuestionSolutionComparisonExpression\$expression
$expression
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:41
ilAssQuestionSolutionComparisonExpression\getPoints
getPoints()
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:177
ilAssQuestionSolutionComparisonExpression\setOrderIndex
setOrderIndex($orderIndex)
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:153
ilAssQuestionSolutionComparisonExpression\__construct
__construct()
Constructor.
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:51
ilAssQuestionSolutionComparisonExpression\$skillTrefId
$skillTrefId
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:31
ilAssQuestionSolutionComparisonExpression\$orderIndex
$orderIndex
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:36
ilAssQuestionSolutionComparisonExpression\save
save()
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:61
ilAssQuestionSolutionComparisonExpression\getExpression
getExpression()
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:161
ilAssQuestionSolutionComparisonExpression\setQuestionId
setQuestionId($questionId)
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:105
ilAssQuestionSolutionComparisonExpression\initInstanceFromArray
initInstanceFromArray($data)
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:193
ilAssQuestionSolutionComparisonExpression\setPoints
setPoints($points)
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:185
ilAssQuestionSolutionComparisonExpression\$points
$points
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:46
ilAssQuestionSolutionComparisonExpression\$db
$db
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:16
ilAssQuestionSolutionComparisonExpression\getDb
getDb()
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:81
ilAssQuestionSolutionComparisonExpression\getQuestionId
getQuestionId()
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:97
php
ilAssQuestionSolutionComparisonExpression\getSkillBaseId
getSkillBaseId()
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:113
ilAssQuestionSolutionComparisonExpression\setExpression
setExpression($expression)
Definition:
class.ilAssQuestionSolutionComparisonExpression.php:169
$data
$data
Definition:
bench.php:6
Modules
TestQuestionPool
classes
class.ilAssQuestionSolutionComparisonExpression.php
Generated on Thu Jan 30 2025 19:01:48 for ILIAS by
1.8.13 (using
Doxyfile
)