ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
ILIAS\LearningModule\InternalDomainService Class Reference
+ Collaboration diagram for ILIAS\LearningModule\InternalDomainService:

Public Member Functions

 __construct (Container $DIC, protected InternalRepoService $repo, protected InternalDataService $data)
 
 lmTree (int $lm_id)
 
 subObjectRetrieval (int $lm_id, string $type, int $current_node, string $lang)
 
 translation (int $lm_id)
 

Static Protected Attributes

static array $instance = []
 

Detailed Description

Definition at line 28 of file class.InternalDomainService.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\LearningModule\InternalDomainService::__construct ( Container  $DIC,
protected InternalRepoService  $repo,
protected InternalDataService  $data 
)

Definition at line 34 of file class.InternalDomainService.php.

38 {
39 $this->initDomainServices($DIC);
40 }
initDomainServices(\ILIAS\DI\Container $DIC)

References ILIAS\Repository\initDomainServices().

+ Here is the call graph for this function:

Member Function Documentation

◆ lmTree()

ILIAS\LearningModule\InternalDomainService::lmTree ( int  $lm_id)

Definition at line 42 of file class.InternalDomainService.php.

42 : \ilLMTree
43 {
44 return self::$instance["tree"][$lm_id] ??= new \ilLMTree($lm_id);
45 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ subObjectRetrieval()

ILIAS\LearningModule\InternalDomainService::subObjectRetrieval ( int  $lm_id,
string  $type,
int  $current_node,
string  $lang 
)

Definition at line 47 of file class.InternalDomainService.php.

52 : Editing\SubObjectRetrieval {
53 return self::$instance["sub_obj_retrieval"][$lm_id][$type][$current_node] ??=
54 new Editing\SubObjectRetrieval(
55 $this->lmTree($lm_id),
56 $type,
57 $current_node,
58 $lang
59 );
60 }

◆ translation()

ILIAS\LearningModule\InternalDomainService::translation ( int  $lm_id)

Definition at line 62 of file class.InternalDomainService.php.

62 : Translations
63 {
64 return (new CachedRepository($this->database()))->getFor($lm_id);
65 }

References ILIAS\Repository\database().

+ Here is the call graph for this function:

Field Documentation

◆ $instance

array ILIAS\LearningModule\InternalDomainService::$instance = []
staticprotected

Definition at line 32 of file class.InternalDomainService.php.


The documentation for this class was generated from the following file: