ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 {
47 if( $this->questionOBJ->getThumbSize() )
48 {
49 $src = $this->questionOBJ->getImagePathWeb() . $this->questionOBJ->getThumbPrefix() . $answer->getImage();
50 }
51 else
52 {
53 $src = $this->questionOBJ->getImagePathWeb() . $answer->getImage();
54 }
55
56 $label[] = "<img src='{$src}' />";
57 }
58
59 if( strlen($answer->getAnswertext()) )
60 {
61 $label[] = $answer->getAnswertext();
62 }
63
64 return implode('<br />', $label);
65 }
66}
const SPECIFIC_QUESTION_TABLE_NAME
table name for specific feedback
getSpecificQuestionTableName()
returns the table name for specific question itself