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\Portfolio
;
22
23
use
ILIAS\Portfolio\Access\AccessSessionRepository
;
24
use
ILIAS\Portfolio\Settings\SettingsDBRepository
;
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
accessSession
(): AccessSessionRepository
37
{
38
return
self::$instance[
"access"
] ??=
new
AccessSessionRepository();
39
}
40
41
public
function
settings
(): SettingsDBRepository
42
{
43
return
self::$instance[
"settings"
] ??=
new
SettingsDBRepository(
44
$this->db,
45
$this->data
46
);
47
}
48
49
}
$data
$data
Definition:
ltiregistration.php:29
SettingsDBRepository
ILIAS\Portfolio
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS\Portfolio\InternalDataService
Definition:
class.InternalDataService.php:25
ILIAS\Portfolio\InternalRepoService\__construct
__construct(protected InternalDataService $data, protected \ilDBInterface $db)
Definition:
class.InternalRepoService.php:30
ilDBInterface
ILIAS\Portfolio\InternalRepoService\settings
settings()
Definition:
class.InternalRepoService.php:41
AccessSessionRepository
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS\Portfolio\InternalRepoService\$instance
static array $instance
Definition:
class.InternalRepoService.php:28
ILIAS\Portfolio\InternalRepoService
Definition:
class.InternalRepoService.php:26
ILIAS\Portfolio\InternalRepoService\accessSession
accessSession()
Definition:
class.InternalRepoService.php:36
ILIAS\$db
$db
Definition:
class.ilias.php:60
components
ILIAS
Portfolio
Service
class.InternalRepoService.php
Generated on Wed Sep 3 2025 23:02:18 for ILIAS by
1.8.13 (using
Doxyfile
)