ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilAssImagemapQuestionFeedback.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{
25 protected function buildAnswerOptionLabel($index, $answer)
26 {
27 $text = $this->lng->txt('region') . " " . ($index + 1);
28 if (strlen($answer->getAnswertext())) {
29 $text = $answer->getAnswertext() . ": " . $text;
30 }
31
32 return $text;
33 }
34}
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...
$index
Definition: metadata.php:128