59 $this->questionId =
null;
60 $this->skillBaseId =
null;
61 $this->skillTrefId =
null;
63 $this->expressions = [];
66 public function load(): void
70 FROM qpl_qst_skl_sol_expr 71 WHERE question_fi = %s AND skill_base_fi = %s AND skill_tref_fi = %s 74 $res = $this->db->queryF(
76 [
'integer',
'integer',
'integer'],
80 while ($row = $this->db->fetchAssoc(
$res)) {
82 $expression->setDb($this->db);
83 $expression->initInstanceFromArray($row);
85 $this->
add($expression);
89 public function save(): void
93 foreach ($this->expressions as $orderIndex => $expression) {
101 public function delete():
void 104 DELETE FROM qpl_qst_skl_sol_expr 105 WHERE question_fi = %s AND skill_base_fi = %s AND skill_tref_fi = %s 108 $this->db->manipulateF(
110 [
'integer',
'integer',
'integer'],
117 $expression->
setDb($this->db);
122 $this->expressions[$expression->
getOrderIndex()] = $expression;
125 public function get(): array
132 $this->expressions = [];
setSkillTrefId($skillTrefId)
setSkillBaseId($skillBaseId)
setSkillTrefId($skillTrefId)
add(ilAssQuestionSolutionComparisonExpression $expression)
setSkillBaseId($skillBaseId)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
setQuestionId($questionId)
setQuestionId($questionId)
__construct(ilDBInterface $db)