ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilAssErrorTextFeedback.php
Go to the documentation of this file.
1 <?php
2 
28 {
32  public function getAnswerOptionsByAnswerIndex(): array
33  {
34  return $this->questionOBJ->getErrorData();
35  }
36 
40  protected function buildAnswerOptionLabel(int $index, $answer): string
41  {
42  $caption = $ordinal = $index + 1;
43  $caption .= '. <br />"' . $answer->getTextWrong() . '" =&gt; ';
44  $caption .= '"' . $answer->getTextCorrect() . '"';
45  $caption .= '</i>';
46 
47  return $caption;
48  }
49 }
$index
Definition: metadata.php:145
buildAnswerOptionLabel(int $index, $answer)