ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilAssMultipleChoiceFeedback.php
Go to the documentation of this file.
1<?php
2
28{
32 public const SPECIFIC_QUESTION_TABLE_NAME = 'qpl_qst_mc';
33
39 protected function getSpecificQuestionTableName(): string
40 {
42 }
43
44 protected function buildAnswerOptionLabel(int $index, $answer): string
45 {
46 $label = [];
47
48 if ($answer->hasImage()) {
49 if ($this->questionOBJ->getThumbSize()) {
50 $src = $this->questionOBJ->getImagePathWeb() . $this->questionOBJ->getThumbPrefix() . $answer->getImage();
51 } else {
52 $src = $this->questionOBJ->getImagePathWeb() . $answer->getImage();
53 }
54
55 $label[] = "<img src='{$src}' />";
56 }
57
58 if ($answer->getAnswertext() !== null
59 && $answer->getAnswertext() !== '') {
60 $label[] = $answer->getAnswertext();
61 }
62
63 return implode('<br />', $label);
64 }
65}
const SPECIFIC_QUESTION_TABLE_NAME
table name for specific feedback
getSpecificQuestionTableName()
returns the table name for specific question itself