ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
class.InternalRepoService.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Wiki
;
22
23
use
ILIAS\Wiki\Page\PageDBRepository
;
24
use
ILIAS\Wiki\Navigation\ImportantPageDBRepository
;
25
use
ILIAS\Wiki\Links\MissingPageDBRepository
;
26
use
ILIAS\Wiki\Settings\SettingsDBRepository
;
27
31
class
InternalRepoService
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
49
public
function
importantPage
():
ImportantPageDBRepository
50
{
51
return
self::$instance[
"imp_page"
] ??=
new
ImportantPageDBRepository
(
52
$this->data,
53
$this->db
54
);
55
}
56
57
public
function
missingPage
():
MissingPageDBRepository
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
}
ILIAS\Wiki\InternalRepoService\page
page()
Definition:
class.InternalRepoService.php:41
$data
$data
Definition:
ltiregistration.php:29
ILIAS\Wiki\Settings\SettingsDBRepository
Definition:
SettingsDBRepository.php:25
ImportantPageDBRepository
ILIAS\Wiki\InternalRepoService\importantPage
importantPage()
Definition:
class.InternalRepoService.php:49
ILIAS\Repository\InternalRepoService
Definition:
class.InternalRepoService.php:26
PageDBRepository
ILIAS\Wiki\InternalRepoService\__construct
__construct(protected InternalDataService $data, protected \ilDBInterface $db)
Definition:
class.InternalRepoService.php:35
ilDBInterface
ILIAS\Wiki
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS\Wiki\InternalRepoService\settings
settings()
Definition:
class.InternalRepoService.php:65
ILIAS\Repository\InternalDataService
Definition:
class.InternalDataService.php:25
ILIAS\Wiki\Navigation\ImportantPageDBRepository
Wiki page repo.
Definition:
ImportantPageDBRepository.php:29
ILIAS\Wiki\InternalRepoService\missingPage
missingPage()
Definition:
class.InternalRepoService.php:57
ILIAS\Wiki\Page\PageDBRepository
Wiki page repo.
Definition:
PageDBRepository.php:28
ILIAS\Wiki\Links\MissingPageDBRepository
Wiki page repo.
Definition:
MissingPageDBRepository.php:28
MissingPageDBRepository
SettingsDBRepository
ILIAS\Wiki\InternalRepoService\$instance
static array $instance
Definition:
class.InternalRepoService.php:33
ILIAS\$db
$db
Definition:
class.ilias.php:60
components
ILIAS
Wiki
Service
class.InternalRepoService.php
Generated on Wed Sep 3 2025 23:02:19 for ILIAS by
1.8.13 (using
Doxyfile
)