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