ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilOrgUnitLocalDIC.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use Pimple\Container;
22
24{
25 public static ?Container $dic = null;
26
27 public static function dic(): Container
28 {
29 if (!self::$dic) {
31 }
32 return self::$dic;
33 }
34
35 protected static function buildDIC(): Container
36 {
37 global $DIC;
38 $dic = new Container();
39
40 $dic['repo.UserAssignments'] = static fn($dic) => new ilOrgUnitUserAssignmentDBRepository($DIC['ilDB']);
41 $dic['repo.Authorities'] = static fn($dic) => new ilOrgUnitAuthorityDBRepository($DIC['ilDB']);
42 $dic['repo.Positions'] = static fn($dic) => new ilOrgUnitPositionDBRepository(
43 $DIC['ilDB'],
44 $dic['repo.Authorities'],
45 $dic['repo.UserAssignments'],
46 $dic['lng']
47 );
48 $dic['repo.OperationContexts'] = static fn($dic) => new ilOrgUnitOperationContextDBRepository($DIC['ilDB']);
49 $dic['repo.Operations'] = static fn($dic) => new ilOrgUnitOperationDBRepository(
50 $DIC['ilDB'],
51 $dic["repo.OperationContexts"]
52 );
53 $dic['repo.Permissions'] = static fn($dic) => new ilOrgUnitPermissionDBRepository(
54 $DIC['ilDB'],
55 $dic["repo.Operations"],
56 $dic["repo.OperationContexts"]
57 );
58 $dic['ui.factory'] = static fn(): \ILIAS\UI\Factory => $DIC['ui.factory'];
59 $dic['ui.renderer'] = static fn(): \ILIAS\UI\Renderer => $DIC['ui.renderer'];
60 $dic['query'] = static fn(): \ILIAS\HTTP\Wrapper\RequestWrapper => $DIC['http']->wrapper()->query();
61 $dic['refinery'] = static fn(): \ILIAS\Refinery\Factory => $DIC['refinery'];
62 $dic['access'] = static fn(): \ilAccessHandler => $DIC['ilAccess'];
63 $dic['lng'] = static fn(): \ilLanguage => $DIC['lng'];
64 $dic['ctrl'] = static fn(): \ilCtrl => $DIC['ilCtrl'];
65 $dic['tabs'] = static fn(): \ilTabsGUI => $DIC['ilTabs'];
66 $dic['resource_storage'] = static fn(): \ILIAS\ResourceStorage\Services => $DIC['resource_storage'];
67 return $dic;
68 }
69}
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
Builds data types.
Definition: Factory.php:36
Class ilCtrl provides processing control methods.
language handling
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface RequestWrapper.
An entity that renders components to a string output.
Definition: Renderer.php:31
Interface ilAccessHandler This interface combines all available interfaces which can be called via gl...
$dic
Definition: ltiresult.php:33
global $DIC
Definition: shib_login.php:26