ILIAS
trunk Revision v11.0_alpha-1769-g99a433fe2dc
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
QuestionPoolDIC.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\TestQuestionPool
;
22
23
use
Pimple\Container
as
PimpleContainer
;
24
use
ILIAS\DI\Container
as
ILIASContainer
;
25
use
ILIAS\TestQuestionPool\Questions\SuggestedSolution\SuggestedSolutionsDatabaseRepository
;
26
use
ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository
;
27
use
ILIAS\TestQuestionPool\Questions\Files\QuestionFiles
;
28
use
ILIAS\Test\Participants\ParticipantRepository
;
29
use
ILIAS\Test\Settings\GlobalSettings\Repository
as GlobalTestSettingsRepository;
30
use
ILIAS\Test\Settings\GlobalSettings\GlobalTestSettings
;
31
32
class
QuestionPoolDIC
extends
PimpleContainer
33
{
34
public
static
?
self
$dic
=
null
;
35
36
public
static
function
dic
(): self
37
{
38
if
(!
self::$dic
) {
39
global
$DIC
;
40
self::$dic
= self::buildDIC($DIC);
41
}
42
return
self::$dic
;
43
}
44
45
protected
static
function
buildDIC
(
ILIASContainer
$DIC
): self
46
{
47
$dic
=
new
self
();
48
$dic
[
'request_data_collector'
] =
static
fn(
$c
):
RequestDataCollector
=>
49
new
RequestDataCollector
(
50
$DIC->http(),
51
$DIC[
'refinery'
],
52
$DIC[
'upload'
]
53
);
54
$dic
[
'question.repo.suggestedsolutions'
] =
static
fn(
$c
):
SuggestedSolutionsDatabaseRepository
=>
55
new
SuggestedSolutionsDatabaseRepository
($DIC[
'ilDB'
]);
56
$dic[
'question.general_properties.repository'
] =
static
fn(
$c
):
GeneralQuestionPropertiesRepository
=>
57
new
GeneralQuestionPropertiesRepository
(
58
$DIC[
'ilDB'
],
59
$DIC[
'component.factory'
],
60
$DIC[
'component.repository'
]
61
);
62
$dic[
'question_files'
] = fn(
$c
):
QuestionFiles
=>
63
new
QuestionFiles
();
64
65
$dic[
'participant_repository'
] =
static
fn(
$c
):
ParticipantRepository
=>
66
new
ParticipantRepository
($DIC[
'ilDB'
]);
67
$dic[
'global_test_settings'
] =
static
fn(
$c
):
GlobalTestSettings
=>
68
(
new
GlobalTestSettingsRepository($DIC[
'ilSetting'
],
new
\
ilSetting
(
'assessment'
)))->getGlobalSettings();
69
70
return
$dic
;
71
}
72
}
ILIAS\TestQuestionPool\QuestionPoolDIC\dic
static dic()
Definition:
QuestionPoolDIC.php:36
SuggestedSolutionsDatabaseRepository
ILIAS\TestQuestionPool\QuestionPoolDIC
Definition:
QuestionPoolDIC.php:32
ILIAS\TestQuestionPool\RequestDataCollector
Definition:
RequestDataCollector.php:30
ILIAS\Test\Settings\GlobalSettings\GlobalTestSettings
Definition:
GlobalTestSettings.php:29
$c
$c
Definition:
deliver.php:25
Container
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:142
Container
ILIAS\TestQuestionPool\Questions\GeneralQuestionPropertiesRepository
Definition:
GeneralQuestionPropertiesRepository.php:23
ParticipantRepository
QuestionFiles
ILIAS\TestQuestionPool\QuestionPoolDIC\$dic
static self $dic
Definition:
QuestionPoolDIC.php:34
$DIC
global $DIC
Definition:
shib_login.php:22
ILIAS\TestQuestionPool\Questions\SuggestedSolution\SuggestedSolutionsDatabaseRepository
Repository for suggested solutions.
Definition:
SuggestedSolutionsDatabaseRepository.php:28
ILIAS\Test\Participants\ParticipantRepository
Definition:
ParticipantRepository.php:26
ILIAS\TestQuestionPool
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
ilTestLegacyFormsHelper.php:19
ILIAS\Test\Settings\GlobalSettings\Repository
Definition:
Repository.php:23
$dic
$dic
Definition:
result.php:31
GlobalTestSettings
ILIAS\TestQuestionPool\Questions\Files\QuestionFiles
Definition:
QuestionFiles.php:23
ilSetting
GeneralQuestionPropertiesRepository
ILIAS\TestQuestionPool\QuestionPoolDIC\buildDIC
static buildDIC(ILIASContainer $DIC)
Definition:
QuestionPoolDIC.php:45
components
ILIAS
TestQuestionPool
src
QuestionPoolDIC.php
Generated on Sun Apr 13 2025 23:04:06 for ILIAS by
1.8.13 (using
Doxyfile
)