ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.InternalRepoService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace 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 }
__construct(protected InternalDataService $data, protected \ilDBInterface $db)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...