ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.InternalDomainService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\LearningModule;
22
25
27{
28 use GlobalDICDomainServices;
29
30 protected static array $instance = [];
31
32 public function __construct(
34 protected InternalRepoService $repo,
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}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
Learning modules internal data service.
__construct(Container $DIC, protected InternalRepoService $repo, protected InternalDataService $data)
subObjectRetrieval(int $lm_id, string $type, int $current_node, string $lang)
Learning modules internal repo service.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
initDomainServices(\ILIAS\DI\Container $DIC)
global $DIC
Definition: shib_login.php:26
$lang
Definition: xapiexit.php:25