ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
class.InternalDomainService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Help;
22
29
31{
32 use GlobalDICDomainServices;
33
34 protected array $container = [];
35 protected static array $instance = [];
36
39
40 public function __construct(
44 ) {
45 $this->repo_service = $repo_service;
46 $this->data_service = $data_service;
47 $this->initDomainServices($DIC);
48 }
49
50 public function guidedTour(): \ILIAS\Help\GuidedTour\InternalDomainService
51 {
52 return self::$instance["guided"] ??= new GuidedTour\InternalDomainService(
53 $this->DIC,
54 $this->repo_service->guidedTour(),
55 $this->data_service->guidedTour()
56 );
57 }
58
59
60 public function map(): MapManager
61 {
62 return $this->container["map"] ??
63 $this->container["map"] = new MapManager(
64 $this->repo_service,
65 $this
66 );
67 }
68
69 public function tooltips(): TooltipsManager
70 {
71 return $this->container["tooltips"] ??
72 $this->container["tooltips"] = new TooltipsManager(
73 $this->repo_service,
74 $this
75 );
76 }
77
78 public function module(): ModuleManager
79 {
80 if (!isset($this->container["module"])) {
81 $this->container["module"] = new ModuleManager(
82 $this->repo_service->module(),
83 $this
84 );
85 }
86 return $this->container["module"];
87 }
88
90 {
91 return $this->container["presentation"] ??
92 $this->container["presentation"] = new PresentationManager(
93 $this
94 );
95 }
96
97}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
__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