ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
class.InternalDomainService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Help\GuidedTour;
22
33
35{
36 use GlobalDICDomainServices;
37
38 protected static array $instance = [];
39
40 public function __construct(
42 protected InternalRepoService $repo,
44 ) {
45 $this->initDomainServices($DIC);
46 }
47
48 public function tourSettings(): SettingsManager
49 {
50 return self::$instance["settings"] ??= new SettingsManager(
51 $this->data,
52 $this->repo,
53 $this
54 );
55 }
56
57 public function tour(): TourManager
58 {
59 return self::$instance["tour"] ??= new TourManager(
60 $this->data,
61 $this
62 );
63 }
64
65 public function step(): StepManager
66 {
67 return self::$instance["step"] ??= new StepManager(
68 $this->data,
69 $this->repo,
70 $this
71 );
72 }
73
74 public function stepRetrieval(int $tour_id): StepRetrieval
75 {
76 return self::$instance["step_retrieval"][$tour_id] ??= new StepRetrieval(
77 $this,
78 $tour_id
79 );
80 }
81
82 public function page(): PageManager
83 {
84 return self::$instance["page"] ??= new PageManager(
85 $this
86 );
87 }
88
89 public function admin(): AdminManager
90 {
91 return self::$instance["admin"] ??= new AdminManager(
92 $this
93 );
94 }
95
96 public function idPresentation(): IdPresentation
97 {
98 return self::$instance["id_pres"] ??= new IdPresentation(
99 $this
100 );
101 }
102
104 {
105 return self::$instance["user_finished"] ??= new UserFinishedManager(
106 $this->data,
107 $this->repo,
108 $this
109 );
110 }
111
112}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
__construct(Container $DIC, protected InternalRepoService $repo, protected InternalDataService $data)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
initDomainServices(\ILIAS\DI\Container $DIC)
global $DIC
Definition: shib_login.php:26