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