ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
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
 
static ServiceContainer $specific_dic = null
 

Detailed Description

Definition at line 70 of file TestDIC.php.

Member Function Documentation

◆ buildDIC()

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

Definition at line 84 of file TestDIC.php.

84 : self
85 {
86 $dic = new self();
87 $dic['shuffler'] = static fn($c): \ilTestShuffler =>
88 new \ilTestShuffler($DIC['refinery']);
89
90 $dic['title_columns_builder'] = static fn($c): TitleColumnsBuilder =>
91 new TitleColumnsBuilder(
92 $c['question.general_properties.repository'],
93 $DIC['ilCtrl'],
94 $DIC['ilAccess'],
95 $DIC['lng'],
96 $DIC['static_url'],
97 $DIC['ui.factory'],
98 $DIC['refinery']
99 );
100
101 $dic['results.data.factory'] = static fn($c): ResultsDataFactory =>
102 new ResultsDataFactory(
103 $c['shuffler'],
104 $DIC['ui.factory'],
105 $DIC['ui.renderer']
106 );
107
108 $dic['results.presentation.factory'] = static fn($c): ResultsPresentationFactory =>
109 new ResultsPresentationFactory(
110 $DIC['ui.factory'],
111 $DIC['ui.renderer'],
112 $DIC['refinery'],
113 new DataFactory(),
114 $DIC['http'],
115 $DIC['lng']
116 );
117
118 $dic['results.data.repository'] = static fn($c): TestResultRepository =>
119 new TestResultRepository(
120 $DIC->database(),
121 $DIC->refinery(),
122 $c['marks.repository'],
123 $DIC->globalCache()
124 );
125
126 $dic['settings.factory'] = static fn($c): SettingsFactory =>
127 new SettingsFactory();
128
129 $dic['settings.main.repository'] = static fn($c): MainSettingsRepository =>
130 new MainSettingsDatabaseRepository($DIC->database(), $c['settings.factory']);
131
132 $dic['settings.scoring.repository'] = static fn($c): ScoreSettingsRepository =>
133 new ScoreSettingsDatabaseRepository($DIC->database(), $c['settings.factory']);
134
135 $dic['settings.personal_templates.repository'] = static fn($c): PersonalSettingsRepository =>
136 new PersonalSettingsDatabaseRepository(
137 $DIC->database(),
138 $DIC->user(),
139 $c['settings.factory']
140 );
141
142 $dic['settings.personal_templates.exporter'] = static fn($c): PersonalSettingsExporter =>
143 new PersonalSettingsExporter(
144 $DIC['file_delivery'],
145 $c['settings.personal_templates.repository'],
146 $c['settings.main.repository'],
147 $c['settings.scoring.repository'],
148 $c['marks.repository']
149 );
150
151 $dic['participant.access_filter.factory'] = static fn($c): \ilTestParticipantAccessFilterFactory =>
153
154 $dic['scoring.manual.done_helper'] = static fn($c): TestManScoringDoneHelper =>
155 new TestManScoringDoneHelper();
156
157 $dic['marks.factory'] = static fn($c): MarkSchemaFactory =>
158 new MarkSchemaFactory();
159
160 $dic['marks.repository'] = static fn($c): MarksRepository =>
161 new MarksDatabaseRepository($DIC['ilDB'], $c['marks.factory']);
162
163 $dic['request_data_collector'] = static fn($c): RequestDataCollector =>
164 new RequestDataCollector(
165 $DIC['http'],
166 $DIC['refinery']
167 );
168
169 $dic['response_handler'] = static fn($c): ResponseHandler =>
170 new ResponseHandler($DIC['http'], );
171
172 $dic['settings.global.repository'] = static fn($c): GlobalSettingsRepository =>
173 new GlobalSettingsRepository($DIC['ilSetting'], new \ilSetting('assessment'));
174
175 $dic['logging.settings'] = static fn($c): TestLoggingSettings =>
176 $c['settings.global.repository']->getLoggingSettings();
177
178 $dic['logging.factory'] = static fn($c): InteractionFactory =>
179 new InteractionFactory();
180
181 $dic['logging.repository'] = static fn($c): TestLoggingRepository =>
182 new TestLoggingDatabaseRepository(
183 $c['logging.factory'],
184 $DIC['ilDB']
185 );
186
187 $dic['logging.information_generator'] = static fn($c): Logging\AdditionalInformationGenerator =>
188 new Logging\AdditionalInformationGenerator(
189 $DIC[\ILIAS\Mail\TemplateEngine\TemplateEngineFactoryInterface::class]->getBasicEngine(),
190 $DIC['lng'],
191 $DIC['ui.factory'],
192 $DIC['refinery'],
193 $c['question.general_properties.repository']
194 );
195
196 $dic['logging.logger'] = static fn($c): TestLogger =>
197 new TestLogger(
198 $c['logging.settings'],
199 $c['logging.repository'],
200 $c['logging.factory'],
201 $c['logging.information_generator'],
202 \ilLoggerFactory::getLogger('tst')
203 );
204
205 $dic['logging.viewer'] = static fn($c): TestLogViewer =>
206 new TestLogViewer(
207 $c['logging.repository'],
208 $c['logging.logger'],
209 $c['title_columns_builder'],
210 $c['question.general_properties.repository'],
211 $DIC['http']->request(),
212 $DIC['http']->wrapper()->query(),
213 $DIC->uiService(),
214 $DIC['ui.factory'],
215 $DIC['ui.renderer'],
216 $DIC['refinery'],
217 $DIC['lng'],
218 $DIC['tpl'],
219 $DIC['file_delivery']->delivery(),
220 $DIC['ilUser']
221 );
222
223 $dic['exportimport.factory'] = static fn($c): ExportImportFactory =>
224 new ExportImportFactory(
225 $DIC['lng'],
226 $DIC['ilDB'],
227 $DIC['ilBench'],
228 $DIC['tpl'],
229 $c['logging.logger'],
230 $DIC['tree'],
231 $DIC['component.repository'],
232 $DIC['component.factory'],
233 $DIC['file_delivery'],
234 $DIC['ilUser'],
235 $c['question.general_properties.repository'],
236 $DIC['resource_storage'],
237 );
238
239 $dic['exportimport.repository'] = static fn($c): ExportImportRepository =>
240 new ExportImportRepository(
241 $DIC['ilDB']
242 );
243
244 $dic['exportimport.logging'] = static fn($c): LoggingProvider =>
245 new LoggingProvider();
246
247 $dic['exportimport.export_context_holder'] = static fn($c): ExportContextHolder =>
248 new ExportContextHolder();
249
250 $dic['exportimport.session'] = static fn($c): ImportSessionRepository =>
251 new ImportSessionRepository('tst');
252
253 $dic['exportimport.transformations_builder'] = static fn($c): TransformationsBuilder =>
254 new TransformationsBuilder($DIC, $c);
255
256 $dic['exportimport.exporter'] = static fn($c): TestExporter =>
257 new TestExporter(
258 $c['exportimport.transformations_builder'],
259 new DataFactory(),
260 $DIC->database(),
262 $DIC->language(),
263 $c['logging.logger'],
264 $DIC['component.repository'],
266 $c['participant.repository'],
267 $c['results.data.repository'],
268 $c['questions.properties.repository'],
269 $c['question.general_properties.repository'],
270 $DIC->taxonomy()->domain()
271 );
272
273 $dic['exportimport.skill_assignments_importer'] = static fn($c): SkillAssignmentsImporter =>
274 new SkillAssignmentsImporter(
275 $c['exportimport.logging'](),
276 $DIC->skills()->internal()->repo()->getTreeRepo(),
277 $DIC->skills()->usage(),
278 'components/ILIAS/Test',
279 (int) $DIC->settings()->get('inst_id', '0')
280 );
281
282 $dic['exportimport.skill_level_thresholds_importer'] = static fn($c): SkillLevelThresholdsImporter =>
283 new SkillLevelThresholdsImporter(
284 $c['exportimport.logging'](),
285 $DIC->database(),
286 $DIC->skills()->internal()->repo()->getTreeRepo(),
287 'components/ILIAS/Test',
288 (int) $DIC->settings()->get('inst_id', '0')
289 );
290
291 $dic['exportimport.questions_importer'] = static fn($c): QuestionsImporter =>
292 new QuestionsImporter(
293 'components/ILIAS/Test',
294 'tst',
295 $DIC->ctrl(),
296 $DIC->database(),
297 $DIC->language(),
298 $c['exportimport.logging'](),
299 $DIC->fileConverters()->images(),
301 );
302
303 $dic['exportimport.test_results_importer'] = static fn($c): TestResultsImporter =>
304 new TestResultsImporter(
305 $DIC->database(),
306 $c['exportimport.logging']()
307 );
308
309 $dic['exportimport.random_test_config_importer'] = static fn($c): RandomTestConfigImporter =>
310 new RandomTestConfigImporter(
311 $DIC->database(),
312 new DataFactory()
313 );
314
315 $dic['exportimport.importer'] = static fn($c): TestImporter =>
316 new TestImporter(
317 $c['exportimport.transformations_builder'],
318 $DIC->database(),
319 $c['exportimport.logging'](),
321 new DataFactory(),
322 $c['exportimport.questions_importer'],
323 $c['exportimport.random_test_config_importer'],
324 $c['exportimport.test_results_importer'],
325 $c['exportimport.skill_assignments_importer'],
326 $c['exportimport.skill_level_thresholds_importer'],
327 $c['marks.repository']
328 );
329
330 $dic['questions.properties.repository'] = static fn($c): TestQuestionsRepository =>
331 new TestQuestionsDatabaseRepository(
332 $DIC['ilDB'],
333 $c['question.general_properties.repository']
334 );
335
336 $dic['question.general_properties.repository'] = static fn($c): GeneralQuestionPropertiesRepository =>
337 new GeneralQuestionPropertiesRepository(
338 $DIC['ilDB'],
339 $DIC['component.factory'],
340 $DIC['component.repository']
341 );
342
343 $dic['question.request_data_wrapper'] = static fn($c): QPLRequestDataCollector =>
344 new QPLRequestDataCollector(
345 $DIC->http(),
346 $DIC['refinery'],
347 $DIC['upload']
348 );
349
350 $dic['participant.repository'] = static fn($c): ParticipantRepository =>
351 new ParticipantRepository($DIC['ilDB']);
352
353 $dic['gui.factory'] = static fn($c): GUIFactory =>
354 new GUIFactory($DIC, $c);
355
356 return $dic;
357 }
static self $dic
Definition: TestDIC.php:72
ILIAS Setting Class.
static http()
Fetches the global http state from ILIAS.
get(string $class_name)
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.
RFC 822 Email address list validation Utility.
global $DIC
Definition: shib_login.php:26

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

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

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dic()

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

Definition at line 75 of file TestDIC.php.

75 : self
76 {
77 if (!self::$dic) {
78 global $DIC;
80 }
81 return self::$dic;
82 }
static buildDIC(ILIASContainer $DIC)
Definition: TestDIC.php:84

References $DIC, XapiProxy\$dic, ILIAS\Test\TestDIC\$dic, and ILIAS\Test\TestDIC\buildDIC().

+ Here is the call graph for this function:

Field Documentation

◆ $dic

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

Definition at line 72 of file TestDIC.php.

Referenced by ILIAS\Test\TestDIC\buildDIC(), and ILIAS\Test\TestDIC\dic().

◆ $specific_dic

ServiceContainer ILIAS\Test\TestDIC::$specific_dic = null
staticprotected

Definition at line 73 of file TestDIC.php.


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