ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
4 require_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  {
23  return self::SPECIFIC_QUESTION_TABLE_NAME;
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 }
$index
Definition: metadata.php:60
Create styles array
The data for the language used.