ILIAS  release_8 Revision v8.24
ilStudyProgrammeDIC Class Reference
+ Collaboration diagram for ilStudyProgrammeDIC:

Static Public Member Functions

static dic ()
 
static specificDicFor (ilObjStudyProgramme $prg)
 

Static Public Attributes

static Container $dic = null
 

Static Protected Member Functions

static buildDIC ()
 

Detailed Description

Definition at line 23 of file class.ilStudyProgrammeDIC.php.

Member Function Documentation

◆ buildDIC()

static ilStudyProgrammeDIC::buildDIC ( )
staticprotected

Definition at line 119 of file class.ilStudyProgrammeDIC.php.

119 : Container
120 {
121 global $DIC;
122 $dic = new Container();
123
124 $dic['mail'] = static fn ($dic) =>
125 new ilPRGMail(
126 $dic['Log'],
127 $DIC['lng']
128 );
129
130 $dic['ilAppEventHandler'] = static fn ($dic) =>
131 $DIC->offsetExists('ilAppEventHandler') ? $DIC['ilAppEventHandler'] : new \ilAppEventHandler();
132
133 $dic['prgEventHandler'] = static fn ($dic) => new PRGEventHandler($dic['mail']);
134
135 $dic['ilStudyProgrammeEvents'] = static fn ($dic) =>
137 $dic['Log'],
138 $dic['ilAppEventHandler'],
139 $dic['prgEventHandler']
140 );
141 $dic['ilStudyProgrammeDelayedEvents'] = static fn ($dic) =>
142 new PRGEventsDelayed($dic['ilStudyProgrammeEvents']);
143
144 $dic['repo.assignment'] = static fn ($dic) =>
146 $DIC['ilDB'],
147 $DIC['tree'],
148 $dic['model.Settings.ilStudyProgrammeSettingsRepository'],
149 $dic['ilStudyProgrammeDelayedEvents']
150 );
151
152
153 $dic['model.Settings.ilStudyProgrammeSettingsRepository'] = static fn ($dic) =>
155 $DIC['ilDB']
156 );
157 $dic['model.AutoMemberships.ilStudyProgrammeAutoMembershipsRepository'] = static fn ($dic) =>
159 $DIC['ilDB'],
160 (int) $DIC['ilUser']->getId()
161 );
162 $dic['model.AutoMemberships.ilStudyProgrammeMembershipSourceReaderFactory'] = static fn ($dic) =>
164 $dic['model.Type.ilStudyProgrammeTypeRepository'] = static fn ($dic) =>
166 $DIC['ilDB'],
167 $dic['model.Settings.ilStudyProgrammeSettingsRepository'],
168 $DIC->filesystem()->web(),
169 $DIC['ilUser'],
170 $DIC['lng'],
171 $DIC['component.factory']
172 );
173 $dic['model.AutoCategories.ilStudyProgrammeAutoCategoriesRepository'] = static fn ($dic) =>
175 $DIC['ilDB'],
176 (int) $DIC['ilUser']->getId()
177 );
178 $dic['ilObjStudyProgrammeSettingsGUI'] = static fn ($dic) =>
180 $DIC['tpl'],
181 $DIC['ilCtrl'],
182 $DIC['lng'],
183 $DIC->ui()->factory()->input(),
184 $DIC->ui()->renderer(),
185 $DIC->http()->request(),
186 $DIC->refinery(),
187 $dic['DataFactory'],
188 $dic['model.Type.ilStudyProgrammeTypeRepository'],
189 $dic['ilStudyProgrammeCommonSettingsGUI'],
190 $DIC['ilTabs'],
191 $DIC->http()->wrapper()->query()
192 );
193 $dic['PRGMessages'] = static fn ($dic) =>
196 $DIC['lng'],
197 $DIC['tpl']
198 );
199 $dic['ilObjStudyProgrammeMembersGUI'] = static fn ($dic) =>
201 $DIC['tpl'],
202 $DIC['ilCtrl'],
203 $DIC['ilToolbar'],
204 $DIC['lng'],
205 $DIC['ilUser'],
206 $DIC['ilTabs'],
207 $dic['repo.assignment'],
208 $dic['ilStudyProgrammeRepositorySearchGUI'],
209 $dic['ilObjStudyProgrammeIndividualPlanGUI'],
210 $dic['PRGMessages'],
211 $dic['DataFactory'],
212 new ilConfirmationGUI(),
213 $DIC->http()->wrapper(),
214 $DIC->refinery(),
215 $DIC['ui.factory'],
216 $DIC['ui.renderer'],
217 $DIC->http()->request()
218 );
219 $dic['ilObjStudyProgrammeAutoMembershipsGUI'] = static fn ($dic) =>
221 $DIC['tpl'],
222 $DIC['ilCtrl'],
223 $DIC['ilToolbar'],
224 $DIC['lng'],
225 $DIC->ui()->factory(),
226 $DIC['ui.factory']->messageBox(),
227 $DIC['ui.factory']->button(),
228 $DIC->ui()->renderer(),
229 $DIC->http()->request(),
230 $DIC['tree'],
231 $DIC->http()->wrapper()->query(),
232 $DIC->refinery()
233 );
234 $dic['ilObjStudyProgrammeTreeGUI'] = static fn ($dic) =>
236 $DIC['tpl'],
237 $DIC['ilCtrl'],
238 $DIC['ilAccess'],
239 $DIC['ilToolbar'],
240 $DIC['lng'],
241 $dic['Log'],
242 $DIC['ilias'],
243 $DIC['ilSetting'],
244 $DIC['tree'],
245 $DIC['rbacadmin'],
246 $DIC->http()->wrapper(),
247 $DIC->refinery()
248 );
249 $dic['ilStudyProgrammeTypeGUI'] = static fn ($dic) =>
251 $DIC['tpl'],
252 $DIC['ilCtrl'],
253 $DIC['ilAccess'],
254 $DIC['ilToolbar'],
255 $DIC['lng'],
256 $DIC['ilias'],
257 $DIC['ilTabs'],
258 $DIC['ilUser'],
259 $dic['model.Type.ilStudyProgrammeTypeRepository'],
260 $DIC->ui()->factory()->input(),
261 $DIC->ui()->renderer(),
262 $DIC->http()->request(),
263 $DIC->refinery(),
264 $DIC->filesystem()->web(),
265 $DIC->http()->wrapper()->query()
266 );
267 $dic['ilStudyProgrammeRepositorySearchGUI'] = static fn ($dic) =>
269 $dic['ilObjStudyProgrammeIndividualPlanGUI'] = static fn ($dic) =>
271 $DIC['tpl'],
272 $DIC['ilCtrl'],
273 $DIC['lng'],
274 $DIC['ilUser'],
275 $dic['repo.assignment'],
276 $dic['PRGMessages'],
277 $DIC->http()->wrapper(),
278 $DIC->refinery()
279 );
280 $dic['ilObjStudyProgrammeAutoCategoriesGUI'] = static fn ($dic) =>
282 $DIC['tpl'],
283 $DIC['ilCtrl'],
284 $DIC['ilToolbar'],
285 $DIC['lng'],
286 $DIC->ui()->factory(),
287 $DIC['ui.factory']->messageBox(),
288 $DIC['ui.factory']->button(),
289 $DIC->ui()->renderer(),
290 $DIC->http()->request(),
291 $DIC['tree'],
292 $DIC->http()->wrapper()->query(),
293 $DIC->refinery()
294 );
295 $dic['DataFactory'] = static fn ($dic) =>
296 new \ILIAS\Data\Factory();
297 $dic['ilOrgUnitObjectTypePositionSetting'] = static fn ($dic) =>
299 $dic['ilStudyProgrammeMailMemberSearchGUI'] = static fn ($dic) =>
301 $DIC['ilCtrl'],
302 $DIC['tpl'],
303 $DIC['lng'],
304 $DIC['ilAccess'],
305 $DIC->http()->wrapper(),
306 $DIC->refinery(),
307 $dic['permissionhelper']
308 );
309 $dic['ilStudyProgrammeChangeExpireDateGUI'] = static fn ($dic) =>
311 $DIC['ilCtrl'],
312 $DIC['tpl'],
313 $DIC['lng'],
314 $DIC['ilAccess'],
315 $DIC['ilUser'],
316 $DIC->ui()->factory()->input(),
317 $DIC->ui()->renderer(),
318 $DIC->http()->request(),
319 $DIC->refinery(),
320 $dic['DataFactory'],
321 $dic['PRGMessages']
322 );
323 $dic['ilStudyProgrammeChangeDeadlineGUI'] = static fn ($dic) =>
325 $DIC['ilCtrl'],
326 $DIC['tpl'],
327 $DIC['lng'],
328 $DIC['ilAccess'],
329 $DIC['ilUser'],
330 $DIC->ui()->factory()->input(),
331 $DIC->ui()->renderer(),
332 $DIC->http()->request(),
333 $DIC->refinery(),
334 $dic['DataFactory'],
335 $dic['PRGMessages']
336 );
337
338 $dic['permissionhelper'] = static function ($dic) use ($DIC) {
339 return new ilPRGPermissionsHelper(
340 $DIC['ilAccess'],
342 $DIC['ilObjDataCache'],
343 new ilOrgUnitPositionAccess($DIC['ilAccess']),
344 -1
345 );
346 };
347
348 $dic['ilStudyProgrammeUserTable'] = function ($dic) use ($DIC) {
349 return new ilStudyProgrammeUserTable(
350 $DIC['ilDB'],
352 $dic['repo.assignment'],
353 $DIC['lng'],
354 $dic['permissionhelper']
355 );
356 };
357
358 $dic['ilStudyProgrammeDashboardViewGUI'] = static fn ($dic) =>
360 $DIC['lng'],
361 $DIC['ilAccess'],
362 $DIC['ilSetting'],
363 $DIC['ui.factory'],
364 $DIC['ui.renderer'],
365 $DIC['ilCtrl'],
366 $dic['ilStudyProgrammeUserTable'],
367 $DIC['ilUser']->getId()
368 );
369 $dic['ilStudyProgrammeCommonSettingsGUI'] = static fn ($dic) =>
371 $DIC['ilCtrl'],
372 $DIC['tpl'],
373 $DIC['lng'],
374 $DIC->object()
375 );
376 $dic['Log'] = static fn ($dic) =>
378
379 $dic['current_user'] = static fn ($dic) =>
380 $DIC['ilUser'];
381
382 $dic['cron.riskyToFail'] = static fn ($dic) =>
384 $dic['model.Settings.ilStudyProgrammeSettingsRepository'],
385 $dic['ilStudyProgrammeEvents']
386 );
387 $dic['cron.notRestarted'] = static fn ($dic) =>
389 $dic['model.Settings.ilStudyProgrammeSettingsRepository'],
390 $dic['ilStudyProgrammeEvents']
391 );
392 $dic['cron.restart'] = static fn ($dic) =>
393 new ilPrgRestart(
394 $dic['model.Settings.ilStudyProgrammeSettingsRepository'],
395 $dic['ilStudyProgrammeEvents']
396 );
397
398
399 return $dic;
400 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getInstanceByType(string $a_type)
Get Singleton Instance.
static getLogger(string $a_component_id)
Get component logger.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
@ilCtrl_Calls ilObjStudyProgrammeMembersGUI: ilStudyProgrammeRepositorySearchGUI @ilCtrl_Calls ilObjS...
@ilCtrl_Calls ilObjStudyProgrammeSettingsGUI: ilStudyProgrammeCommonSettingsGUI
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilStudyProgrammeUserTable provides a flattened list of progresses at a programme-node.
global $DIC
Definition: feed.php:28

References $DIC, $dic, ilExportFieldsInfo\_getInstanceByType(), ILIAS\Survey\Mode\getId(), ilOrgUnitGlobalSettings\getInstance(), and ilLoggerFactory\getLogger().

Referenced by dic().

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

◆ dic()

◆ specificDicFor()

static ilStudyProgrammeDIC::specificDicFor ( ilObjStudyProgramme  $prg)
static

Definition at line 35 of file class.ilStudyProgrammeDIC.php.

35 : Container
36 {
37 global $DIC;
38 $dic = new Container();
39
40 $dic['permissionhelper'] = static function ($dic) use ($prg, $DIC) {
41 return new ilPRGPermissionsHelper(
42 $DIC['ilAccess'],
44 $DIC['ilObjDataCache'],
45 new ilOrgUnitPositionAccess($DIC['ilAccess']),
46 (int) $prg->getRefid()
47 );
48 };
49
50 $dic['ilStudyProgrammeUserTable'] = function ($dic) use ($DIC) {
52 $DIC['ilDB'],
54 $dic['repo.assignment'],
55 $DIC['lng'],
56 $dic['permissionhelper']
57 );
58 };
59
60 $dic['model.Settings.ilStudyProgrammeSettingsRepository'] = function ($dic) use ($DIC) {
62 $DIC['ilDB']
63 );
64 };
65 $dic['repo.assignment'] = function ($dic) use ($DIC) {
67 $DIC['ilDB'],
68 $DIC['tree'],
69 $dic['model.Settings.ilStudyProgrammeSettingsRepository'],
70 $dic['ilStudyProgrammeDelayedEvents']
71 );
72 };
73 $dic['filter.assignment'] = function ($dic) use ($DIC): ilPRGAssignmentFilter {
74 return new ilPRGAssignmentFilter(
75 $DIC['lng']
76 );
77 };
78
79 $dic['Log'] = static fn ($dic) =>
81
82 $dic['mail'] = static fn ($dic) =>
83 new ilPRGMail(
84 $dic['Log'],
85 $DIC['lng']
86 );
87 $dic['ilAppEventHandler'] = static fn ($dic) =>
88 $DIC->offsetExists('ilAppEventHandler') ? $DIC['ilAppEventHandler'] : new \ilAppEventHandler();
89
90 $dic['prgEventHandler'] = static fn ($dic) => new PRGEventHandler($dic['mail']);
91
92 $dic['ilStudyProgrammeEvents'] = static fn ($dic) =>
94 $dic['Log'],
95 $dic['ilAppEventHandler'],
96 $dic['prgEventHandler']
97 );
98 $dic['ilStudyProgrammeDelayedEvents'] = static fn ($dic) =>
99 new PRGEventsDelayed($dic['ilStudyProgrammeEvents']);
100
101 $dic['ui.factory'] = static fn ($dic) => $DIC['ui.factory'];
102 $dic['ui.renderer'] = static fn ($dic) => $DIC['ui.renderer'];
103
104 $dic['ilStudyProgrammeMailMemberSearchGUI'] = static fn ($dic) =>
106 $DIC['ilCtrl'],
107 $DIC['tpl'],
108 $DIC['lng'],
109 $DIC['ilAccess'],
110 $DIC->http()->wrapper(),
111 $DIC->refinery(),
112 $dic['permissionhelper']
113 );
114
115 return $dic;
116 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $DIC, $dic, ilExportFieldsInfo\_getInstanceByType(), ilOrgUnitGlobalSettings\getInstance(), and ilLoggerFactory\getLogger().

Referenced by ilObjStudyProgrammeMembersGUI\executeCommand(), ilObjStudyProgrammeMembersGUI\getMembersTableGUI(), ilObjStudyProgrammeGUI\getPermissionsHelper(), ilObjStudyProgrammeMembersGUI\mailToSelectedUsers(), ilObjStudyProgrammeIndividualPlanGUI\setRefId(), and ilObjStudyProgrammeMembersGUI\setRefId().

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

Field Documentation

◆ $dic

Container ilStudyProgrammeDIC::$dic = null
static

Definition at line 25 of file class.ilStudyProgrammeDIC.php.

Referenced by buildDIC(), dic(), and specificDicFor().


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