32 protected array
$map = array();
36 $this->map[] = $identifier;
39 public function load(
int $questionId): void
43 $res = $DIC->database()->queryF(
44 "SELECT feedback_id, question, answer FROM {$this->getSpecificFeedbackTableName()} WHERE question_fi = %s",
49 while ($row = $DIC->database()->fetchAssoc(
$res)) {
52 $identifier->setQuestionId($questionId);
54 $identifier->setQuestionIndex($row[
'question']);
55 $identifier->setAnswerIndex($row[
'answer']);
57 $identifier->setFeedbackId($row[
'feedback_id']);
59 $this->
add($identifier);
72 return next($this->map);
78 return key($this->map);
83 return key($this->map) !== null;
89 return reset($this->map);
94 require_once
'Modules/TestQuestionPool/classes/feedback/class.ilAssClozeTestFeedback.php';
add(ilAssSpecificFeedbackIdentifier $identifier)
const TABLE_NAME_SPECIFIC_FEEDBACK
table name for specific feedback
getSpecificFeedbackTableName()