ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
4 require_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  {
33  return self::SPECIFIC_QUESTION_TABLE_NAME;
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
Create styles array
The data for the language used.