ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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  {
31  return self::SPECIFIC_QUESTION_TABLE_NAME;
32  }
33 
39  protected function buildAnswerOptionLabel(int $index, $answer): string
40  {
41  $label = array();
42 
43  if (strlen($answer->getImageFile())) {
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 (strlen($answer->getAnswertext())) {
54  $label[] = $answer->getAnswertext();
55  }
56 
57  return implode('<br />', $label);
58  }
59 }
$index
Definition: metadata.php:145