ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilAssClozeTestFeedback.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{
23 {
24 return $this->questionOBJ->gaps;
25 }
26
36 protected function buildAnswerOptionLabel($index, $answer)
37 {
38 $caption = 'Gap ' . $ordinal = $index+1 . ':<i> ';
39
40 foreach ($answer->items as $item) {
41 $caption .= '"' . $item->getAnswertext() . '" / ';
42 }
43
44 $caption = substr($caption, 0, strlen($caption)-3);
45 $caption .= '</i>';
46
47 return $caption;
48 }
49}
An exception for terminatinating execution or to throw for unit testing.
buildAnswerOptionLabel($index, $answer)
builds an answer option label from given (mixed type) index and answer (overwrites parent method from...
getAnswerOptionsByAnswerIndex()
returns the answer options mapped by answer index (overwrites parent method from ilAssMultiOptionQues...
$index
Definition: metadata.php:60