ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.InternalDomainService.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\LearningModule
;
22
23
use
ILIAS\DI\Container
;
24
use
ILIAS\Repository\GlobalDICDomainServices
;
25
26
class
InternalDomainService
27
{
28
use
GlobalDICDomainServices
;
29
30
protected
static
array
$instance
= [];
31
32
public
function
__construct
(
33
Container
$DIC
,
34
protected
InternalRepoService
$repo,
35
protected
InternalDataService
$data
36
) {
37
$this->
initDomainServices
($DIC);
38
}
39
40
public
function
lmTree
(
int
$lm_id): \
ilLMTree
41
{
42
return
self::$instance[
"tree"
][$lm_id] ??= new \ilLMTree($lm_id);
43
}
44
45
public
function
subObjectRetrieval
(
46
int
$lm_id,
47
string
$type,
48
int
$current_node,
49
string
$lang
50
): Editing\SubObjectRetrieval {
51
return
self::$instance[
"sub_obj_retrieval"
][$lm_id][$type][$current_node] ??=
52
new
Editing\SubObjectRetrieval(
53
$this->
lmTree
($lm_id),
54
$type,
55
$current_node,
56
$lang
57
);
58
}
59
60
}
$data
$data
Definition:
ltiregistration.php:29
ILIAS\LearningModule\InternalDomainService\$instance
static array $instance
Definition:
class.InternalDomainService.php:30
ILIAS\Repository\initDomainServices
initDomainServices(\ILIAS\DI\Container $DIC)
Definition:
trait.GlobalDICDomainServices.php:41
ILIAS\LearningModule\InternalRepoService
Learning modules internal repo service.
Definition:
class.InternalRepoService.php:27
Container
ILIAS\LearningModule\InternalDomainService\subObjectRetrieval
subObjectRetrieval(int $lm_id, string $type, int $current_node, string $lang)
Definition:
class.InternalDomainService.php:45
ILIAS\LearningModule\InternalDataService
Learning modules internal data service.
Definition:
class.InternalDataService.php:27
$DIC
global $DIC
Definition:
shib_login.php:26
ILIAS\LearningModule\InternalDomainService\__construct
__construct(Container $DIC, protected InternalRepoService $repo, protected InternalDataService $data)
Definition:
class.InternalDomainService.php:32
ILIAS\LearningModule
ILIAS\LearningModule\InternalDomainService\lmTree
lmTree(int $lm_id)
Definition:
class.InternalDomainService.php:40
$lang
$lang
Definition:
xapiexit.php:25
ilLMTree
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilLMTree.php:22
ILIAS\Repository\GlobalDICDomainServices
trait GlobalDICDomainServices
Definition:
trait.GlobalDICDomainServices.php:38
ILIAS\Container
Definition:
Container.php:23
GlobalDICDomainServices
ILIAS\LearningModule\InternalDomainService
Definition:
class.InternalDomainService.php:26
components
ILIAS
LearningModule
Service
class.InternalDomainService.php
Generated on Sun Aug 31 2025 23:02:10 for ILIAS by
1.8.13 (using
Doxyfile
)