ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.InternalDomainService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Help;
22 
29 
31 {
33 
34  protected array $container = [];
35 
38 
39  public function __construct(
41  InternalRepoService $repo_service,
42  InternalDataService $data_service
43  ) {
44  $this->repo_service = $repo_service;
45  $this->data_service = $data_service;
46  $this->initDomainServices($DIC);
47  }
48 
49  public function map(): MapManager
50  {
51  return $this->container["map"] ??
52  $this->container["map"] = new MapManager(
53  $this->repo_service,
54  $this
55  );
56  }
57 
58  public function tooltips(): TooltipsManager
59  {
60  return $this->container["tooltips"] ??
61  $this->container["tooltips"] = new TooltipsManager(
62  $this->repo_service,
63  $this
64  );
65  }
66 
67  public function module(): ModuleManager
68  {
69  if (!isset($this->container["module"])) {
70  $this->container["module"] = new ModuleManager(
71  $this->repo_service->module(),
72  $this
73  );
74  }
75  return $this->container["module"];
76  }
77 
78  public function presentation(): PresentationManager
79  {
80  return $this->container["presentation"] ??
81  $this->container["presentation"] = new PresentationManager(
82  $this
83  );
84  }
85 
86 }
initDomainServices(\ILIAS\DI\Container $DIC)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:22
__construct(Container $DIC, InternalRepoService $repo_service, InternalDataService $data_service)