ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ 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
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
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
q
r
s
t
u
v
w
x
z
+
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
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilAssSpecificFeedbackIdentifierList.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
require_once
'Modules/TestQuestionPool/classes/feedback/class.ilAssSpecificFeedbackIdentifier.php'
;
6
15
class
ilAssSpecificFeedbackIdentifierList
implements
Iterator
16
{
20
protected
$map
= array();
21
25
protected
function
add
(
ilAssSpecificFeedbackIdentifier
$identifier)
26
{
27
$this->map[] = $identifier;
28
}
29
33
public
function
load
($questionId)
34
{
35
global
$DIC
;
/* @var ILIAS\DI\Container $DIC */
36
37
$res
= $DIC->database()->queryF(
38
"SELECT feedback_id, question, answer FROM {$this->getSpecificFeedbackTableName()} WHERE question_fi = %s"
,
39
array(
'integer'
),
40
array($questionId)
41
);
42
43
$feedbackIdByAnswerIndexMap = array();
44
45
while
($row = $DIC->database()->fetchAssoc(
$res
)) {
46
$identifier =
new
ilAssSpecificFeedbackIdentifier
();
47
48
$identifier->setQuestionId($questionId);
49
50
$identifier->setQuestionIndex($row[
'question'
]);
51
$identifier->setAnswerIndex($row[
'answer'
]);
52
53
$identifier->setFeedbackId($row[
'feedback_id'
]);
54
55
$this->
add
($identifier);
56
}
57
}
58
62
public
function
current
()
63
{
64
return
current
($this->map);
65
}
66
70
public
function
next
()
71
{
72
return
next
($this->map);
73
}
74
78
public
function
key
()
79
{
80
return
key
($this->map);
81
}
82
86
public
function
valid
()
87
{
88
return
key
($this->map) !== null;
89
}
90
94
public
function
rewind
()
95
{
96
return
reset($this->map);
97
}
98
99
protected
function
getSpecificFeedbackTableName
()
100
{
101
require_once
'Modules/TestQuestionPool/classes/feedback/class.ilAssClozeTestFeedback.php'
;
102
return
ilAssClozeTestFeedback::TABLE_NAME_SPECIFIC_FEEDBACK
;
103
}
104
}
ilAssSpecificFeedbackIdentifierList\$map
$map
Definition:
class.ilAssSpecificFeedbackIdentifierList.php:20
ilAssSpecificFeedbackIdentifierList\load
load($questionId)
Definition:
class.ilAssSpecificFeedbackIdentifierList.php:33
ilAssSpecificFeedbackIdentifierList\add
add(ilAssSpecificFeedbackIdentifier $identifier)
Definition:
class.ilAssSpecificFeedbackIdentifierList.php:25
ilAssMultiOptionQuestionFeedback\TABLE_NAME_SPECIFIC_FEEDBACK
const TABLE_NAME_SPECIFIC_FEEDBACK
table name for specific feedback
Definition:
class.ilAssMultiOptionQuestionFeedback.php:22
ilAssSpecificFeedbackIdentifierList\next
next()
Definition:
class.ilAssSpecificFeedbackIdentifierList.php:70
$res
foreach($_POST as $key=> $value) $res
Definition:
save_question_post_data.php:15
ilAssSpecificFeedbackIdentifierList\getSpecificFeedbackTableName
getSpecificFeedbackTableName()
Definition:
class.ilAssSpecificFeedbackIdentifierList.php:99
ilAssSpecificFeedbackIdentifier
Definition:
class.ilAssSpecificFeedbackIdentifier.php:13
Iterator
ilAssSpecificFeedbackIdentifierList\rewind
rewind()
Definition:
class.ilAssSpecificFeedbackIdentifierList.php:94
$DIC
$DIC
Definition:
xapitoken.php:46
ilAssSpecificFeedbackIdentifierList
Definition:
class.ilAssSpecificFeedbackIdentifierList.php:15
ilAssSpecificFeedbackIdentifierList\current
current()
Definition:
class.ilAssSpecificFeedbackIdentifierList.php:62
ilAssSpecificFeedbackIdentifierList\valid
valid()
Definition:
class.ilAssSpecificFeedbackIdentifierList.php:86
ilAssSpecificFeedbackIdentifierList\key
key()
Definition:
class.ilAssSpecificFeedbackIdentifierList.php:78
Modules
TestQuestionPool
classes
feedback
class.ilAssSpecificFeedbackIdentifierList.php
Generated on Wed Apr 9 2025 20:01:13 for ILIAS by
1.8.13 (using
Doxyfile
)