ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 {
37 if( $this->questionOBJ->getThumbSize() )
38 {
39 $src = $answer->getThumbWebPath();
40 }
41 else
42 {
43 $src = $answer->getImageWebPath();
44 }
45
46 $label[] = "<img src='{$src}' />";
47 }
48
49 if( strlen($answer->getAnswertext()) )
50 {
51 $label[] = $answer->getAnswertext();
52 }
53
54 return implode('<br />', $label);
55 }
56}
getSpecificQuestionTableName()
returns the name of question specific table