ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilAssMatchingQuestionFeedback.php
Go to the documentation of this file.
1<?php
2
28{
35 public function getAnswerOptionsByAnswerIndex(): array
36 {
37 return $this->questionOBJ->getMatchingPairs();
38 }
39
49 protected function buildAnswerOptionLabel(int $index, $answer): string
50 {
51 $caption = $ordinal = $index + 1;
52 $caption .= '. <br />"' . $answer->getTerm()->getText() . '" =&gt; ';
53 $caption .= '"' . $answer->getDefinition()->getText() . '"';
54 $caption .= '</i>';
55
56 return $caption;
57 }
58}
getAnswerOptionsByAnswerIndex()
returns the answer options mapped by answer index (overwrites parent method from ilAssMultiOptionQues...
buildAnswerOptionLabel(int $index, $answer)
builds an answer option label from given (mixed type) index and answer (overwrites parent method from...