ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ILIAS\TestQuestionPool\QuestionPoolDIC Class Reference
+ Inheritance diagram for ILIAS\TestQuestionPool\QuestionPoolDIC:
+ Collaboration diagram for ILIAS\TestQuestionPool\QuestionPoolDIC:

Static Public Member Functions

static dic ()
 

Static Public Attributes

static self $dic = null
 

Static Protected Member Functions

static buildDIC (ILIASContainer $DIC)
 

Detailed Description

Definition at line 41 of file QuestionPoolDIC.php.

Member Function Documentation

◆ buildDIC()

static ILIAS\TestQuestionPool\QuestionPoolDIC::buildDIC ( ILIASContainer  $DIC)
staticprotected

Definition at line 54 of file QuestionPoolDIC.php.

54 : self
55 {
56 $dic = new self();
57 $dic['request_data_collector'] = static fn($c): RequestDataCollector =>
58 new RequestDataCollector(
59 $DIC->http(),
60 $DIC['refinery'],
61 $DIC['upload']
62 );
63 $dic['question.repo.suggestedsolutions'] = static fn($c): SuggestedSolutionsDatabaseRepository =>
64 new SuggestedSolutionsDatabaseRepository($DIC['ilDB']);
65 $dic['question.general_properties.repository'] = static fn($c): GeneralQuestionPropertiesRepository =>
66 new GeneralQuestionPropertiesRepository(
67 $DIC['ilDB'],
68 $DIC['component.factory'],
69 $DIC['component.repository']
70 );
71 $dic['question_files'] = fn($c): QuestionFiles =>
72 new QuestionFiles();
73
74 $dic['participant_repository'] = static fn($c): ParticipantRepository =>
75 new ParticipantRepository($DIC['ilDB']);
76 $dic['global_test_settings'] = static fn($c): GlobalTestSettings =>
77 (new GlobalTestSettingsRepository($DIC['ilSetting'], new \ilSetting('assessment')))->getGlobalSettings();
78
79 $dic['exportimport.logging'] = static fn($c): LoggingProvider =>
80 new LoggingProvider();
81 $dic['exportimport.transformations_builder'] = static fn($c): TransformationsBuilder =>
82 new TransformationsBuilder($DIC);
83 $dic['exportimport.export_context_holder'] = static fn($c): ExportContextHolder =>
84 new ExportContextHolder();
85 $dic['exportimport.exporter'] = static fn($c): QuestionPoolExporter =>
86 new QuestionPoolExporter(
87 $c['exportimport.transformations_builder'],
88 new DataFactory(),
89 $c['question.general_properties.repository'],
90 $DIC->database(),
91 $DIC->taxonomy()->domain()
92 );
93
94 $dic['exportimport.session'] = static fn($c): ImportSessionRepository =>
95 new ImportSessionRepository('qpl');
96 $dic['exportimport.skill_assignments_importer'] = static fn($c): SkillAssignmentsImporter =>
97 new SkillAssignmentsImporter(
98 $c['exportimport.logging'](),
99 $DIC->skills()->internal()->repo()->getTreeRepo(),
100 $DIC->skills()->usage(),
101 'components/ILIAS/TestQuestionPool',
102 (int) $DIC->settings()->get('inst_id', '0')
103 );
104 $dic['exportimport.questions_importer'] = static fn($c): QuestionsImporter =>
105 new QuestionsImporter(
106 'components/ILIAS/TestQuestionPool',
107 'qpl',
108 $DIC->ctrl(),
109 $DIC->database(),
110 $DIC->language(),
111 $c['exportimport.logging'](),
112 $DIC->fileConverters()->images(),
114 );
115 $dic['exportimport.importer'] = static fn($c): QuestionPoolImporter =>
116 new QuestionPoolImporter(
117 $c['exportimport.transformations_builder'],
118 $c['exportimport.logging'](),
119 new DataFactory(),
120 $c['exportimport.questions_importer'],
121 $c['exportimport.skill_assignments_importer']
122 );
123
124 return $dic;
125 }
ILIAS Setting Class.
static http()
Fetches the global http state from ILIAS.
get(string $class_name)
global $DIC
Definition: shib_login.php:26

References Vendor\Package\$c, $DIC, and ILIAS\TestQuestionPool\QuestionPoolDIC\$dic.

Referenced by ILIAS\TestQuestionPool\QuestionPoolDIC\dic().

+ Here is the caller graph for this function:

◆ dic()

static ILIAS\TestQuestionPool\QuestionPoolDIC::dic ( )
static

Definition at line 45 of file QuestionPoolDIC.php.

45 : self
46 {
47 if (!self::$dic) {
48 global $DIC;
50 }
51 return self::$dic;
52 }
static buildDIC(ILIASContainer $DIC)

References $DIC, XapiProxy\$dic, ILIAS\TestQuestionPool\QuestionPoolDIC\$dic, and ILIAS\TestQuestionPool\QuestionPoolDIC\buildDIC().

+ Here is the call graph for this function:

Field Documentation

◆ $dic

self ILIAS\TestQuestionPool\QuestionPoolDIC::$dic = null
static

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