ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
class.InternalRepoService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Help\GuidedTour;
22
26
28{
29 protected static array $instance = [];
30 public function __construct(
31 protected InternalDataService $data,
32 protected \ilDBInterface $db
33 ) {
34 }
35
36 public function step(): StepDBRepository
37 {
38 return self::$instance["step"] ??= new StepDBRepository($this->db, $this->data);
39 }
40
41 public function settings(): SettingsDBRepository
42 {
43 return self::$instance["settings"] ??= new SettingsDBRepository($this->db, $this->data);
44 }
45
47 {
48 return self::$instance["user_finished"] ??= new UserFinishedDBRepository($this->db);
49 }
50}
__construct(protected InternalDataService $data, protected \ilDBInterface $db)
Interface ilDBInterface.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...