ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
class.InternalDomainService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Help;
22
30
32{
33 use GlobalDICDomainServices;
34
35 protected array $container = [];
36 protected static array $instance = [];
37
40
41 public function __construct(
45 ) {
46 $this->repo_service = $repo_service;
47 $this->data_service = $data_service;
48 $this->initDomainServices($DIC);
49 }
50
51 public function guidedTour(): \ILIAS\Help\GuidedTour\InternalDomainService
52 {
53 return self::$instance["guided"] ??= new GuidedTour\InternalDomainService(
54 $this->DIC,
55 $this->repo_service->guidedTour(),
56 $this->data_service->guidedTour()
57 );
58 }
59
60
61 public function map(): MapManager
62 {
63 return $this->container["map"] ??
64 $this->container["map"] = new MapManager(
65 $this->repo_service,
66 $this
67 );
68 }
69
70 public function tooltips(): TooltipsManager
71 {
72 return $this->container["tooltips"] ??
73 $this->container["tooltips"] = new TooltipsManager(
74 $this->repo_service,
75 $this
76 );
77 }
78
79 public function module(): ModuleManager
80 {
81 if (!isset($this->container["module"])) {
82 $this->container["module"] = new ModuleManager(
83 $this->repo_service->module(),
84 $this
85 );
86 }
87 return $this->container["module"];
88 }
89
91 {
92 return new ModuleRetrieval($this);
93 }
94
96 {
97 return $this->container["presentation"] ??
98 $this->container["presentation"] = new PresentationManager(
99 $this
100 );
101 }
102
103}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:38
__construct(Container $DIC, InternalRepoService $repo_service, InternalDataService $data_service)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
initDomainServices(\ILIAS\DI\Container $DIC)
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.
global $DIC
Definition: shib_login.php:26