ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilAssErrorTextFeedback.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Modules/TestQuestionPool/classes/feedback/class.ilAssMultiOptionQuestionFeedback.php';
5
15{
22 protected function getAnswerOptionsByAnswerIndex()
23 {
24 return $this->questionOBJ->getErrorData();
25 }
26
36 protected function buildAnswerOptionLabel($index, $answer)
37 {
38 $caption = $ordinal = $index+1;
39 $caption .= '. <br />"' . $answer->text_wrong . '" =&gt; ';
40 $caption .= '"' . $answer->text_correct . '"';
41 $caption .= '</i>';
42
43 return $caption;
44 }
45}
getAnswerOptionsByAnswerIndex()
returns the answer options mapped by answer index (overwrites parent method from ilAssMultiOptionQues...
buildAnswerOptionLabel($index, $answer)
builds an answer option label from given (mixed type) index and answer (overwrites parent method from...