ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ILIAS\User\LocalDIC Class Reference
+ Inheritance diagram for ILIAS\User\LocalDIC:
+ Collaboration diagram for ILIAS\User\LocalDIC:

Static Public Member Functions

static dic ()
 

Private Member Functions

 init (ILIASContainer $DIC)
 

Static Private Attributes

static LocalDIC $dic = null
 

Detailed Description

Definition at line 48 of file LocalDIC.php.

Member Function Documentation

◆ dic()

static ILIAS\User\LocalDIC::dic ( )
static

Definition at line 52 of file LocalDIC.php.

52 : self
53 {
54 if (self::$dic === null) {
55 global $DIC;
56 self::$dic = new LocalDIC();
57 self::$dic->init($DIC);
58 }
59
60 return self::$dic;
61 }
static LocalDIC $dic
Definition: LocalDIC.php:50
$dic
Definition: ltiresult.php:33
global $DIC
Definition: shib_login.php:26

References $DIC, $dic, and ILIAS\User\LocalDIC\$dic.

Referenced by ILIAS\User\Settings\StartingPoint\Setting\__construct(), ILIAS\User\StaticURLHandler\__construct(), ILIAS\User\PublicInterface\getProfile(), ILIAS\User\PublicInterface\getSearch(), and ILIAS\User\PublicInterface\getSettings().

+ Here is the caller graph for this function:

◆ init()

ILIAS\User\LocalDIC::init ( ILIASContainer  $DIC)
private

Definition at line 63 of file LocalDIC.php.

63 : void
64 {
65 $this[UserSettingsConfigurationRepository::class] = fn($c): UserSettingsConfigurationRepository =>
66 new DatatabaseUserSettingsConfigurationRepository(
67 $DIC['ilSetting'],
68 is_readable(CollectSettingsObjective::PATH())
69 ? include CollectSettingsObjective::PATH()
70 : []
71 );
72 $this[UserSettings::class] = fn($c): UserSettings =>
73 new UserSettingsImplementation(
74 $DIC['lng'],
75 $DIC['ilSetting'],
76 $DIC['tpl'],
77 $DIC['ui.factory'],
78 $DIC['refinery'],
79 $c[UserSettingsConfigurationRepository::class],
80 $c[UserSettingsDataRepository::class]
81 );
82 $this[StartingPointRepository::class] = fn($c): StartingPointRepository =>
83 new StartingPointRepository(
84 $DIC['ilUser'],
85 $DIC['ilDB'],
86 $DIC->logger(),
87 $DIC['tree'],
88 $DIC['rbacreview'],
89 $DIC['rbacsystem'],
90 $DIC['ilSetting'],
91 $c[UserSettingsConfigurationRepository::class]
92 );
93 $this[UserSettingsDataRepository::class] = fn($c): UserSettingsDataRepository =>
94 new DatatabaseUserSettingsDataRepository(
95 $DIC['ilDB']
96 );
97 $this[ProfileDataRepository::class] = fn($c): ProfileDataRepository =>
98 new DatabaseProfileDataRepository(
99 $DIC['ilDB'],
100 $DIC['resource_storage'],
101 $c[ProfileFieldsConfigurationRepository::class]
102 );
103 $this[ProfileFieldsConfigurationRepository::class] = fn($c): ProfileFieldsConfigurationRepository =>
104 new DatabaseProfileFieldsConfigurationRepository(
105 $DIC['ilDB'],
106 new UUIDFactory(),
107 is_readable(CollectTypesObjective::PATH())
108 ? include CollectTypesObjective::PATH()
109 : [],
110 array_filter([
111 new Standard\Alias(),
112 new Standard\FirstName(),
113 new Standard\LastName(),
114 new Standard\Title(),
115 new Standard\Birthday(),
116 new Standard\Gender(),
117 new Standard\Avatar(
118 $DIC['resource_storage'],
119 $DIC['upload'],
120 $DIC['http']->wrapper()->post(),
121 $DIC['ui.renderer'],
122 $DIC['refinery']
123 ),
124 new Standard\Roles(
125 $DIC['ilObjDataCache']
126 ),
127 new Standard\OrganisationalUnits(),
128 new Standard\Interests(
129 $DIC['ilCtrl']
130 ),
131 new Standard\HelpOffered(
132 $DIC['ilCtrl']
133 ),
134 new Standard\HelpLookedFor(
135 $DIC['ilCtrl']
136 ),
137 new Standard\Institution(),
138 new Standard\Department(),
139 new Standard\Street(),
140 new Standard\ZipCode(),
141 new Standard\City(),
142 new Standard\Country(),
143 new Standard\PhoneOffice(),
144 new Standard\PhoneHome(),
145 new Standard\PhoneMobile(),
146 new Standard\Fax(),
147 new Standard\Email(),
148 new Standard\SecondEmail(),
149 new Standard\Hobby(),
150 new Standard\ReferralComment(),
151 new Standard\Matriculation(),
152 new Standard\ClientIP(),
153 \ilMapUtil::isActivated() ? new Standard\Location() : null
154 ])
155 );
156 $this['profile.fields.changelisteners'] = fn($c): array =>
157 is_readable(CollectListenersObjective::PATH())
158 ? include CollectListenersObjective::PATH()
159 : [];
160 $this[Profile::class] = fn($c): Profile =>
161 new ProfileImplementation(
162 $DIC['lng'],
163 $c[ProfileFieldsConfigurationRepository::class],
164 $c[ProfileDataRepository::class]
165 );
166 $this[EndpointFactory::class] = fn($c): EndpointFactory =>
167 new EndpointFactory(
168 $c[ProfileFieldsConfigurationRepository::class],
169 $c[ProfileDataRepository::class],
170 $c[UserSettingsDataRepository::class],
171 $DIC['user']->getLoggedInUser(),
172 $DIC['http'],
173 $DIC['refinery'],
174 $DIC['ilCtrl'],
175 new DataFactory()
176 );
177 $this[Search::class] = fn($c): Search => new Search(
178 $DIC['ui.factory'],
179 $c[EndpointFactory::class]
180 );
181 $this[NewAccountMailRepository::class] = fn($c): NewAccountMailRepository =>
182 new NewAccountMailRepository($DIC['ilDB']);
183 }
Title class.
Definition: Title.php:42
$c
Definition: deliver.php:25

References $c, $DIC, ilMapUtil\isActivated(), and ILIAS\Setup\Artifact\BuildArtifactObjective\PATH().

+ Here is the call graph for this function:

Field Documentation

◆ $dic

LocalDIC ILIAS\User\LocalDIC::$dic = null
staticprivate

Definition at line 50 of file LocalDIC.php.

Referenced by ILIAS\User\LocalDIC\dic().


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