ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator 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 = [];
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 }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null