ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilAssMultipleChoiceFeedback.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.ilAssConfigurableMultiOptionQuestionFeedback.php';
5
15{
19 protected $questionOBJ;
20
24 const SPECIFIC_QUESTION_TABLE_NAME = 'qpl_qst_mc';
25
31 protected function getSpecificQuestionTableName()
32 {
34 }
35
41 protected function buildAnswerOptionLabel($index, $answer)
42 {
43 $label = array();
44
45 if (strlen($answer->getImage())) {
46 if ($this->questionOBJ->getThumbSize()) {
47 $src = $this->questionOBJ->getImagePathWeb() . $this->questionOBJ->getThumbPrefix() . $answer->getImage();
48 } else {
49 $src = $this->questionOBJ->getImagePathWeb() . $answer->getImage();
50 }
51
52 $label[] = "<img src='{$src}' />";
53 }
54
55 if (strlen($answer->getAnswertext())) {
56 $label[] = $answer->getAnswertext();
57 }
58
59 return implode('<br />', $label);
60 }
61}
An exception for terminatinating execution or to throw for unit testing.
const SPECIFIC_QUESTION_TABLE_NAME
table name for specific feedback
getSpecificQuestionTableName()
returns the table name for specific question itself
$index
Definition: metadata.php:60