ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ 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
ilAssErrorTextFeedback
Definition:
class.ilAssErrorTextFeedback.php:27
ilAssMultiOptionQuestionFeedback
Definition:
class.ilAssMultiOptionQuestionFeedback.php:30
ilAssErrorTextFeedback\buildAnswerOptionLabel
buildAnswerOptionLabel(int $index, $answer)
Definition:
class.ilAssErrorTextFeedback.php:40
components
ILIAS
TestQuestionPool
classes
feedback
class.ilAssErrorTextFeedback.php
Generated on Sun Aug 31 2025 23:04:03 for ILIAS by
1.8.13 (using
Doxyfile
)