ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
class.InternalRepoService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Help;
22
26
28{
30 protected \ilDBInterface $db;
31
32 protected static array $instance = [];
33
35 {
36 $this->data = $data;
37 $this->db = $db;
38 }
39
40 public function guidedTour(): \ILIAS\Help\GuidedTour\InternalRepoService
41 {
42 return self::$instance["guided"] ??= new GuidedTour\InternalRepoService(
43 $this->data->guidedTour(),
44 $this->db
45 );
46 }
47
48 public function map(): MapDBRepository
49 {
50 return new MapDBRepository($this->db);
51 }
52
53 public function tooltips(): TooltipsDBRepository
54 {
55 return new TooltipsDBRepository($this->db);
56 }
57
58 public function module(): ModuleDBRepository
59 {
60 return new ModuleDBRepository($this->db);
61 }
62
63}
__construct(InternalDataService $data, \ilDBInterface $db)
Interface ilDBInterface.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.