ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilAssKprimChoiceFeedback.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
13{
17 protected $questionOBJ;
18
19 const SPECIFIC_QUESTION_TABLE_NAME = 'qpl_qst_kprim';
20
21 protected function getSpecificQuestionTableName()
22 {
24 }
25
31 protected function buildAnswerOptionLabel($index, $answer)
32 {
33 $label = array();
34
35 if (strlen($answer->getImageFile())) {
36 if ($this->questionOBJ->getThumbSize()) {
37 $src = $answer->getThumbWebPath();
38 } else {
39 $src = $answer->getImageWebPath();
40 }
41
42 $label[] = "<img src='{$src}' />";
43 }
44
45 if (strlen($answer->getAnswertext())) {
46 $label[] = $answer->getAnswertext();
47 }
48
49 return implode('<br />', $label);
50 }
51}
An exception for terminatinating execution or to throw for unit testing.
getSpecificQuestionTableName()
returns the name of question specific table
$index
Definition: metadata.php:128