ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.InternalRepoService.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Blog
;
22
23
use
ILIAS\Blog\Settings\SettingsDBRepository
;
24
use
ILIAS\Blog\Posting\PostingDBRepository
;
25
26
class
InternalRepoService
27
{
28
protected
static
array
$instance
= [];
29
30
public
function
__construct
(
31
protected
InternalDataService
$data
,
32
protected
\
ilDBInterface
$db
33
) {
34
}
35
36
public
function
settings
():
SettingsDBRepository
37
{
38
return
self::$instance[
"settings"
] ??=
new
SettingsDBRepository
(
39
$this->db,
40
$this->data
41
);
42
}
43
44
public
function
posting
():
PostingDBRepository
45
{
46
return
self::$instance[
"posting"
] ??=
new
PostingDBRepository
(
47
$this->db,
48
$this->data
49
);
50
}
51
}
ILIAS\Blog\Settings\SettingsDBRepository
Definition:
SettingsDBRepository.php:26
$data
$data
Definition:
ltiregistration.php:29
ILIAS\Blog\InternalRepoService\$instance
static array $instance
Definition:
class.InternalRepoService.php:28
ILIAS\Blog\Posting\PostingDBRepository
Definition:
class.PostingDBRepository.php:27
ILIAS\Blog\InternalRepoService\__construct
__construct(protected InternalDataService $data, protected \ilDBInterface $db)
Definition:
class.InternalRepoService.php:30
ILIAS\Blog\InternalRepoService\settings
settings()
Definition:
class.InternalRepoService.php:36
ILIAS\Blog\InternalRepoService\posting
posting()
Definition:
class.InternalRepoService.php:44
ILIAS\Blog\InternalDataService
Definition:
class.InternalDataService.php:29
ilDBInterface
PostingDBRepository
ILIAS\Blog
Definition:
class.StandardGUIRequest.php:21
ILIAS\Blog\InternalRepoService
Definition:
class.InternalRepoService.php:26
SettingsDBRepository
ILIAS\$db
$db
Definition:
class.ilias.php:60
components
ILIAS
Blog
Service
class.InternalRepoService.php
Generated on Sun Aug 31 2025 23:02:14 for ILIAS by
1.8.13 (using
Doxyfile
)