ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 40 of file LocalDIC.php.

Member Function Documentation

◆ dic()

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

Definition at line 44 of file LocalDIC.php.

44 : self
45 {
46 if (self::$dic === null) {
47 global $DIC;
48 self::$dic = new LocalDIC();
49 self::$dic->init($DIC);
50 }
51
52 return self::$dic;
53 }
static LocalDIC $dic
Definition: LocalDIC.php:42
$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\PublicInterface\getProfile(), and ILIAS\User\PublicInterface\getSettings().

+ Here is the caller graph for this function:

◆ init()

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

Definition at line 55 of file LocalDIC.php.

55 : void
56 {
57 $this[UserSettingsRepository::class] = fn($c): UserSettingsRepository =>
58 new UserSettingsRepository(
59 $DIC['ilSetting'],
60 is_readable(CollectSettingsObjective::PATH())
61 ? include CollectSettingsObjective::PATH()
62 : []
63 );
64 $this[UserSettings::class] = fn($c): UserSettings =>
65 new UserSettingsImplementation(
66 $DIC['lng'],
67 $DIC['ilSetting'],
68 $DIC['tpl'],
69 $DIC['ui.factory'],
70 $DIC['refinery'],
71 $c[UserSettingsRepository::class]
72 );
73 $this[StartingPointRepository::class] = fn($c): StartingPointRepository =>
74 new StartingPointRepository(
75 $DIC['ilUser'],
76 $DIC['ilDB'],
77 $DIC->logger(),
78 $DIC['tree'],
79 $DIC['rbacreview'],
80 $DIC['rbacsystem'],
81 $DIC['ilSetting'],
82 $c[UserSettingsRepository::class]
83 );
84 $this[ProfileDataRepository::class] = fn($c): ProfileDataRepository =>
85 new ProfileDataRepository(
86 $DIC['ilDB'],
87 $DIC['resource_storage'],
88 $c[ProfileFieldsConfigurationRepository::class]
89 );
90 $this[ProfileFieldsConfigurationRepository::class] = fn($c): ProfileFieldsConfigurationRepository =>
91 new ProfileFieldsConfigurationRepository(
92 $DIC['ilDB'],
93 new UUIDFactory(),
94 is_readable(CollectTypesObjective::PATH())
95 ? include CollectTypesObjective::PATH()
96 : [],
97 array_filter([
98 new Standard\Alias(),
99 new Standard\FirstName(),
100 new Standard\LastName(),
101 new Standard\Title(),
102 new Standard\Birthday(),
103 new Standard\Gender(),
104 new Standard\Avatar(
105 $DIC['resource_storage'],
106 $DIC['upload'],
107 $DIC['http']->wrapper()->post(),
108 $DIC['ui.renderer'],
109 $DIC['refinery']
110 ),
111 new Standard\Roles(),
112 new Standard\OrganisationalUnits(),
113 new Standard\Interests(
114 $DIC['ilCtrl']
115 ),
116 new Standard\HelpOffered(
117 $DIC['ilCtrl']
118 ),
119 new Standard\HelpLookedFor(
120 $DIC['ilCtrl']
121 ),
122 new Standard\Institution(),
123 new Standard\Department(),
124 new Standard\Street(),
125 new Standard\ZipCode(),
126 new Standard\City(),
127 new Standard\Country(),
128 new Standard\PhoneOffice(),
129 new Standard\PhoneHome(),
130 new Standard\PhoneMobile(),
131 new Standard\Fax(),
132 new Standard\Email(),
133 new Standard\SecondEmail(),
134 new Standard\Hobby(),
135 new Standard\ReferralComment(),
136 new Standard\Matriculation(),
137 \ilMapUtil::isActivated() ? new Standard\Location() : null
138 ])
139 );
140 $this['profile.fields.changelisteners'] = fn($c): array =>
141 is_readable(CollectListenersObjective::PATH())
142 ? include CollectListenersObjective::PATH()
143 : [];
144 $this[Profile::class] = fn($c): Profile =>
145 new ProfileImplementation(
146 $DIC['lng'],
147 $c[ProfileFieldsConfigurationRepository::class],
148 $c[ProfileDataRepository::class]
149 );
150 $this[NewAccountMailRepository::class] = fn($c): NewAccountMailRepository =>
151 new NewAccountMailRepository($DIC['ilDB']);
152 }
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 42 of file LocalDIC.php.

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


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