4 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionSolutionComparisonExpression.php';
46 $this->questionId = null;
47 $this->skillBaseId = null;
48 $this->skillTrefId = null;
50 $this->expressions =
array();
57 FROM qpl_qst_skl_sol_expr 58 WHERE question_fi = %s AND skill_base_fi = %s AND skill_tref_fi = %s 61 $res = $this->db->queryF(
$query,
array(
'integer',
'integer',
'integer'),
65 while(
$row = $this->db->fetchAssoc(
$res) )
68 $expression->setDb($this->db);
69 $expression->initInstanceFromArray(
$row);
71 $this->
add($expression);
79 foreach($this->expressions as $orderIndex => $expression)
88 public function delete()
91 DELETE FROM qpl_qst_skl_sol_expr 92 WHERE question_fi = %s AND skill_base_fi = %s AND skill_tref_fi = %s 95 $this->db->manipulateF(
$query,
array(
'integer',
'integer',
'integer'),
102 $expression->
setDb($this->db);
107 $this->expressions[$expression->
getOrderIndex()] = $expression;
110 public function get()
117 $this->expressions =
array();
setSkillTrefId($skillTrefId)
setSkillBaseId($skillBaseId)
setSkillTrefId($skillTrefId)
add(ilAssQuestionSolutionComparisonExpression $expression)
setSkillBaseId($skillBaseId)
setQuestionId($questionId)
setQuestionId($questionId)
Create styles array
The data for the language used.
__construct(ilDBInterface $db)