ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilIndividualAssessmentDIC.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 use ILIAS\Data;
24 
26 {
27  public function getObjectDIC(
30  ): Container {
31  $container = new Container();
32 
33  $container['DataFactory'] = function () {
34  return new Data\Factory();
35  };
36 
37  $container['ilIndividualAssessmentPrimitiveInternalNotificator'] = function () {
39  };
40 
41  $container['ilIndividualAssessmentSettingsGUI'] = function ($c) use ($object, $dic) {
43  $object,
44  $dic['ilCtrl'],
45  $dic['tpl'],
46  $dic['lng'],
47  $dic['ilTabs'],
48  $dic['ui.factory']->input(),
49  $dic['refinery'],
50  $dic['ui.renderer'],
51  $dic['http']->request(),
52  $dic['ilErr'],
53  $c['ilIndividualAssessmentCommonSettingsGUI']
54  );
55  };
56 
57  $container['ilIndividualAssessmentMembersGUI'] = function ($c) use ($object, $dic) {
59  $object,
60  $dic['ilCtrl'],
61  $dic['tpl'],
62  $dic['lng'],
63  $dic["ilToolbar"],
64  $dic['ilUser'],
65  $dic['ilTabs'],
66  $object->accessHandler(),
67  $dic['ui.factory'],
68  $dic['ui.renderer'],
69  $dic['ilErr'],
70  $c['ilIndividualAssessmentMemberGUI'],
71  $dic->refinery(),
72  $dic->http()->wrapper(),
73  $c['helper.dateformat']
74  );
75  };
76 
77  $container['irss.stakeholder'] = static fn($c): ResourceStakeholder =>
79  $object->getId(),
80  $dic['ilUser']->getId()
81  );
82 
83  $container['ilIndividualAssessmentMemberGUI'] = function ($c) use ($object, $dic) {
85  $dic['ilCtrl'],
86  $dic['lng'],
87  $dic['tpl'],
88  $dic['ilUser'],
89  $dic['ui.factory']->input(),
90  $dic['ui.factory']->messageBox(),
91  $dic['ui.factory']->button(),
92  $dic['ui.factory']->link(),
93  $dic['refinery'],
94  $c['DataFactory'],
95  $dic['ui.renderer'],
96  $dic['http']->request(),
97  $c['ilIndividualAssessmentPrimitiveInternalNotificator'],
98  $dic["ilToolbar"],
99  $object,
100  $dic['ilErr'],
101  $dic->refinery(),
102  $dic->http()->wrapper()->query(),
103  $c['helper.dateformat'],
104  $dic['resource_storage'],
105  $stakeholder = $c['irss.stakeholder']
106  );
107  };
108 
109  $container['ilIndividualAssessmentCommonSettingsGUI'] = function ($c) use ($object, $dic) {
111  $object,
112  $dic['ilCtrl'],
113  $dic['tpl'],
114  $dic['lng'],
115  $dic->object()
116  );
117  };
118 
119  $container['helper.dateformat'] = function ($c) use ($dic) {
121  $c['DataFactory']
122  );
123  };
124 
125  $container['iass.member.storage'] = static fn($c): ilIndividualAssessmentMembersStorageDB =>
127  $dic['ilDB'],
128  $dic['resource_storage'],
129  $stakeholder = $c['irss.stakeholder']
130  );
131  $container['iass.accesshandler'] = static fn($c): ilIndividualAssessmentAccessHandler =>
133  $object,
134  $dic['ilAccess'],
135  $dic['rbacadmin'],
136  $dic['rbacreview'],
137  $dic['ilUser']
138  );
139 
140  return $container;
141  }
142 }
button(string $caption, string $cmd)
For the purpose of streamlining the grading and learning-process status definition outside of tests...
$c
Definition: deliver.php:25
$container
Definition: wac.php:36
link(string $caption, string $href, bool $new_viewport=false)
$dic
Definition: result.php:31
ilIndividualAssessmentSettingsGUI: ilIndividualAssessmentCommonSettingsGUI
accessHandler()
Get the access handler of this.
For the purpose of streamlining the grading and learning-process status definition outside of tests...