ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.InternalRepoService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Wiki;
22
27
32{
33 protected static array $instance = [];
34
35 public function __construct(
36 protected InternalDataService $data,
37 protected \ilDBInterface $db
38 ) {
39 }
40
41 public function page(): PageDBRepository
42 {
43 return self::$instance["page"] ??= new PageDBRepository(
44 $this->data,
45 $this->db
46 );
47 }
48
50 {
51 return self::$instance["imp_page"] ??= new ImportantPageDBRepository(
52 $this->data,
53 $this->db
54 );
55 }
56
58 {
59 return self::$instance["missing_page"] ??= new MissingPageDBRepository(
60 $this->data,
61 $this->db
62 );
63 }
64
65 public function settings(): SettingsDBRepository
66 {
67 return self::$instance["settings"] ??= new SettingsDBRepository(
68 $this->db,
69 $this->data
70 );
71 }
72
73}
Repository internal data service.
Repository internal repo service.
__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...