ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ILIAS\Test\TestDIC Class Reference
+ Inheritance diagram for ILIAS\Test\TestDIC:
+ Collaboration diagram for ILIAS\Test\TestDIC:

Static Public Member Functions

static dic ()
 

Static Protected Member Functions

static buildDIC (ILIASContainer $DIC)
 

Static Protected Attributes

static self $dic = null
 

Detailed Description

Definition at line 51 of file TestDIC.php.

Member Function Documentation

◆ buildDIC()

static ILIAS\Test\TestDIC::buildDIC ( ILIASContainer  $DIC)
staticprotected

Definition at line 64 of file TestDIC.php.

References $c, ILIAS\Test\TestDIC\$dic, and ilLoggerFactory\getLogger().

64  : self
65  {
66  $dic = new self();
67  $dic['shuffler'] = static fn($c): \ilTestShuffler =>
68  new \ilTestShuffler($DIC['refinery']);
69 
70  $dic['title_columns_builder'] = static fn($c): TitleColumnsBuilder =>
71  new TitleColumnsBuilder(
72  $c['question.general_properties.repository'],
73  $DIC['ilCtrl'],
74  $DIC['ilAccess'],
75  $DIC['lng'],
76  $DIC['static_url'],
77  $DIC['ui.factory'],
78  $DIC['refinery']
79  );
80 
81  $dic['results.data.factory'] = static fn($c): ResultsDataFactory =>
82  new ResultsDataFactory(
83  $c['shuffler'],
84  $DIC['ui.factory'],
85  $DIC['ui.renderer']
86  );
87 
88  $dic['results.presentation.factory'] = static fn($c): ResultsPresentationFactory =>
90  $DIC['ui.factory'],
91  $DIC['ui.renderer'],
92  $DIC['refinery'],
93  new DataFactory(),
94  $DIC['http'],
95  $DIC['lng']
96  );
97 
98  $dic['results.toplist.repository'] = static fn($c): TestTopListRepository =>
99  new TestTopListRepository($DIC['ilDB']);
100 
101  $dic['results.data.repository'] = static fn($c): TestResultRepository =>
103  $DIC->database(),
104  $DIC->refinery(),
105  $c['marks.repository'],
106  $DIC->globalCache()
107  );
108 
109  $dic['settings.main.repository'] = static fn($c): MainSettingsRepository =>
110  new MainSettingsDatabaseRepository($DIC['ilDB']);
111 
112  $dic['participant.access_filter.factory'] = static fn($c): \ilTestParticipantAccessFilterFactory =>
113  new \ilTestParticipantAccessFilterFactory($DIC['ilAccess']);
114 
115  $dic['scoring.manual.done_helper'] = static fn($c): TestManScoringDoneHelper =>
116  new TestManScoringDoneHelper();
117 
118  $dic['marks.repository'] = static fn($c): MarksRepository =>
119  new MarksDatabaseRepository($DIC['ilDB']);
120 
121  $dic['request_data_collector'] = static fn($c): RequestDataCollector =>
122  new RequestDataCollector(
123  $DIC['http'],
124  $DIC['refinery']
125  );
126 
127  $dic['response_handler'] = static fn($c): ResponseHandler =>
128  new ResponseHandler($DIC['http'], );
129 
130  $dic['settings.global.repository'] = static fn($c): GlobalSettingsRepository =>
131  new GlobalSettingsRepository($DIC['ilSetting'], new \ilSetting('assessment'));
132 
133  $dic['logging.settings'] = static fn($c): TestLoggingSettings =>
134  $c['settings.global.repository']->getLoggingSettings();
135 
136  $dic['logging.factory'] = static fn($c): InteractionFactory =>
137  new InteractionFactory();
138 
139  $dic['logging.repository'] = static fn($c): TestLoggingRepository =>
140  new TestLoggingDatabaseRepository(
141  $c['logging.factory'],
142  $DIC['ilDB']
143  );
144 
145  $dic['logging.logger'] = static fn($c): TestLogger =>
146  new TestLogger(
147  $c['logging.settings'],
148  $c['logging.repository'],
149  $c['logging.factory'],
150  new Logging\AdditionalInformationGenerator(
151  (new \ilMustacheFactory())->getBasicEngine(),
152  $DIC['lng'],
153  $DIC['ui.factory'],
154  $DIC['refinery'],
155  $c['question.general_properties.repository']
156  ),
157  \ilLoggerFactory::getLogger('tst')
158  );
159 
160  $dic['logging.viewer'] = static fn($c): TestLogViewer =>
161  new TestLogViewer(
162  $c['logging.repository'],
163  $c['logging.logger'],
164  $c['title_columns_builder'],
165  $c['question.general_properties.repository'],
166  $DIC['http']->request(),
167  $DIC['http']->wrapper()->query(),
168  $DIC->uiService(),
169  $DIC['ui.factory'],
170  $DIC['ui.renderer'],
171  $DIC['refinery'],
172  $DIC['lng'],
173  $DIC['tpl'],
174  $DIC['file_delivery']->delivery(),
175  $DIC['ilUser']
176  );
177 
178  $dic['exportimport.factory'] = static fn($c): ExportImportFactory =>
180  $DIC['lng'],
181  $DIC['ilDB'],
182  $DIC['ilBench'],
183  $DIC['tpl'],
184  $c['logging.logger'],
185  $DIC['tree'],
186  $DIC['component.repository'],
187  $DIC['component.factory'],
188  $DIC['file_delivery'],
189  $DIC['ilUser'],
190  $c['question.general_properties.repository'],
191  $DIC['resource_storage'],
192  );
193 
194  $dic['exportimport.repository'] = static fn($c): ExportImportRepository =>
196  $DIC['ilDB']
197  );
198 
199  $dic['questions.properties.repository'] = static fn($c): TestQuestionsRepository =>
200  new TestQuestionsDatabaseRepository(
201  $DIC['ilDB'],
202  $c['question.general_properties.repository']
203  );
204 
205  $dic['question.general_properties.repository'] = static fn($c): GeneralQuestionPropertiesRepository =>
206  new GeneralQuestionPropertiesRepository(
207  $DIC['ilDB'],
208  $DIC['component.factory'],
209  $DIC['component.repository']
210  );
211 
212  $dic['question.request_data_wrapper'] = static fn($c): QPLRequestDataCollector =>
214  $DIC->http(),
215  $DIC['refinery'],
216  $DIC['upload']
217  );
218 
219  $dic['participant.repository'] = static fn($c): ParticipantRepository =>
220  new ParticipantRepository($DIC['ilDB']);
221 
222  return $dic;
223  }
static self $dic
Definition: TestDIC.php:53
$c
Definition: deliver.php:25
static http()
Fetches the global http state from ILIAS.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:26
+ Here is the call graph for this function:

◆ dic()

static ILIAS\Test\TestDIC::dic ( )
static

Definition at line 55 of file TestDIC.php.

References $DIC, and $dic.

55  : self
56  {
57  if (!self::$dic) {
58  global $DIC;
59  self::$dic = self::buildDIC($DIC);
60  }
61  return self::$dic;
62  }
global $DIC
Definition: shib_login.php:26
$dic
Definition: result.php:31

Field Documentation

◆ $dic

self ILIAS\Test\TestDIC::$dic = null
staticprotected

Definition at line 53 of file TestDIC.php.

Referenced by ILIAS\Test\TestDIC\buildDIC().


The documentation for this class was generated from the following file: