ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilAssKprimChoiceFeedback.php
Go to the documentation of this file.
1<?php
2
26{
27 public const SPECIFIC_QUESTION_TABLE_NAME = 'qpl_qst_kprim';
28
29 protected function getSpecificQuestionTableName(): string
30 {
32 }
33
39 protected function buildAnswerOptionLabel(int $index, $answer): string
40 {
41 $label = [];
42
43 if ($answer->getImageFile() !== null) {
44 if ($this->questionOBJ->getThumbSize()) {
45 $src = $answer->getThumbWebPath();
46 } else {
47 $src = $answer->getImageWebPath();
48 }
49
50 $label[] = "<img src='{$src}' />";
51 }
52
53 if ($answer->getAnswertext() !== null
54 && $answer->getAnswertext() !== '') {
55 $label[] = $answer->getAnswertext();
56 }
57
58 return implode('<br />', $label);
59 }
60}