ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
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 Tue Apr 1 2025 22:01:42 for ILIAS by
1.8.13 (using
Doxyfile
)