ILIAS
release_8 Revision v8.23
◀ ilDoc Overview
class.ilAssErrorTextFeedback.php
Go to the documentation of this file.
1
<?php
2
27
class
ilAssErrorTextFeedback
extends
ilAssMultiOptionQuestionFeedback
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() .
'" => '
;
44
$caption .=
'"'
. $answer->getTextCorrect() .
'"'
;
45
$caption .=
'</i>'
;
46
47
return
$caption;
48
}
49
}
ilAssErrorTextFeedback\getAnswerOptionsByAnswerIndex
getAnswerOptionsByAnswerIndex()
Definition:
class.ilAssErrorTextFeedback.php:32
$index
$index
Definition:
metadata.php:145
ilAssErrorTextFeedback
Definition:
class.ilAssErrorTextFeedback.php:27
ilAssMultiOptionQuestionFeedback
Definition:
class.ilAssMultiOptionQuestionFeedback.php:32
ilAssErrorTextFeedback\buildAnswerOptionLabel
buildAnswerOptionLabel(int $index, $answer)
Definition:
class.ilAssErrorTextFeedback.php:40
Modules
TestQuestionPool
classes
feedback
class.ilAssErrorTextFeedback.php
Generated on Wed Sep 3 2025 22:01:46 for ILIAS by
1.8.13 (using
Doxyfile
)