ILIAS  trunk Revision v13.0_alpha-52-g21c366bbdd4
class.InternalDomainService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\LearningModule;
22
28
30{
31 use GlobalDICDomainServices;
32
33 protected static array $instance = [];
34
35 public function __construct(
37 protected InternalRepoService $repo,
38 protected InternalDataService $data,
39 protected PageManagerInterface $page_manager
40 ) {
41 $this->initDomainServices($DIC);
42 }
43
45 {
46 return $this->page_manager;
47 }
48
49 public function lmTree(int $lm_id): \ilLMTree
50 {
51 return self::$instance["tree"][$lm_id] ??= new \ilLMTree($lm_id);
52 }
53
54 public function subObjectRetrieval(
55 int $lm_id,
56 string $type,
57 int $current_node,
58 string $lang
59 ): Editing\SubObjectRetrieval {
60 return self::$instance["sub_obj_retrieval"][$lm_id][$type][$current_node] ??=
61 new Editing\SubObjectRetrieval(
62 $this->lmTree($lm_id),
63 $this->page_manager,
64 $type,
65 $current_node,
66 $lang
67 );
68 }
69
70 public function glossariesRetrieval(
72 ): Editing\GlossariesRetrieval {
73 return new Editing\GlossariesRetrieval($lm);
74 }
75
76 public function pagesRetrieval(
77 int $lm_id,
78 string $lm_type,
79 bool $layout_per_page
80 ): Editing\PagesRetrieval {
81 return new Editing\PagesRetrieval($lm_id, $lm_type, $layout_per_page, $this->page_manager);
82 }
83
84 public function blockedUsersRetrieval(int $ref_id): Question\BlockedUsers\Retrieval
85 {
86 return new Question\BlockedUsers\Retrieval($ref_id);
87 }
88
89 public function questionStatisticsRetrieval(int $lm_id): Question\Statistics\Retrieval
90 {
91 return new Question\Statistics\Retrieval($lm_id, $this->DIC->testQuestion());
92 }
93
94 public function translation(int $lm_id): Translations
95 {
96 return (new CachedRepository($this->database()))->getFor($lm_id);
97 }
98
99 public function exportIdsRetrieval(int $lm_id): Editing\ExportIds\Retrieval
100 {
101 return new Editing\ExportIds\Retrieval($lm_id);
102 }
103
104 public function helpMappingRetrieval(
106 int $chapter_id
107 ): Editing\HelpMapping\Retrieval {
108 return new Editing\HelpMapping\Retrieval(
109 $lm,
110 $chapter_id,
111 $this->DIC->help()->internal()->domain()->map()
112 );
113 }
114
115 public function shortTitlesRetrieval(
116 int $lm_id,
117 string $lang
118 ): Editing\ShortTitles\Retrieval {
119 return new Editing\ShortTitles\Retrieval($lm_id, $lang);
120 }
121
122 public function linksRetrieval(
123 int $lm_id,
124 string $lm_type
125 ): Links\Retrieval {
126 return new Links\Retrieval(
127 $lm_id,
128 $lm_type,
129 $this->DIC->ctrl(),
130 $this->lng()
131 );
132 }
133
134 public function helpTooltipRetrieval(
135 string $component
136 ): HelpTooltip\Retrieval {
137 return new HelpTooltip\Retrieval(
138 $this->DIC->help()->internal()->domain()->tooltips(),
139 $component
140 );
141 }
142}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:38
Class handles translation mode for an object.
Learning modules internal data service.
__construct(Container $DIC, protected InternalRepoService $repo, protected InternalDataService $data, protected PageManagerInterface $page_manager)
helpMappingRetrieval(\ilObjLearningModule $lm, int $chapter_id)
pagesRetrieval(int $lm_id, string $lm_type, bool $layout_per_page)
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
return['3gp', '7z', 'ai', 'aif', 'aifc', 'aiff', 'au', 'arw', 'avi', 'backup', 'bak', 'bas', 'bpmn', 'bpmn2', 'bmp', 'bib', 'bibtex', 'bz', 'bz2', 'c', 'c++', 'cc', 'cct', 'cdf', 'cer', 'class', 'cls', 'conf', 'cpp', 'crt', 'crs', 'crw', 'cr2', 'css', 'cst', 'csv', 'cur', 'db', 'dcr', 'des', 'dng', 'doc', 'docx', 'dot', 'dotx', 'dtd', 'dvi', 'el', 'eps', 'epub', 'f', 'f77', 'f90', 'flv', 'for', 'g3', 'gif', 'gl', 'gan', 'ggb', 'gsd', 'gsm', 'gtar', 'gz', 'gzip', 'h', 'hpp', 'htm', 'html', 'htmls', 'ibooks', 'ico', 'ics', 'ini', 'ipynb', 'java', 'jbf', 'jpeg', 'jpg', 'js', 'jsf', 'jso', 'json', 'latex', 'lang', 'less', 'log', 'lsp', 'ltx', 'm1v', 'm2a', 'm2v', 'm3u', 'm4a', 'm4v', 'markdown', 'm', 'mat', 'md', 'mdl', 'mdown', 'mid', 'min', 'midi', 'mobi', 'mod', 'mov', 'movie', 'mp2', 'mp3', 'mp4', 'mpa', 'mpeg', 'mpg', 'mph', 'mpga', 'mpp', 'mpt', 'mpv', 'mpx', 'mv', 'mw', 'mv4', 'nb', 'nbp', 'nef', 'nif', 'niff', 'obj', 'obm', 'odt', 'ods', 'odp', 'odg', 'odf', 'oga', 'ogg', 'ogv', 'old', 'p', 'pas', 'pbm', 'pcl', 'pct', 'pcx', 'pdf', 'pgm', 'pic', 'pict', 'png', 'por', 'pov', 'project', 'properties', 'ppa', 'ppm', 'pps', 'ppsx', 'ppt', 'pptx', 'ppz', 'ps', 'psd', 'pwz', 'qt', 'qtc', 'qti', 'qtif', 'r', 'ra', 'ram', 'rar', 'rast', 'rda', 'rev', 'rexx', 'ris', 'rf', 'rgb', 'rm', 'rmd', 'rmi', 'rmm', 'rmp', 'rt', 'rtf', 'rtx', 'rv', 's', 's3m', 'sav', 'sbs', 'sec', 'sdml', 'sgm', 'sgml', 'smi', 'smil', 'srt', 'sps', 'spv', 'stl', 'svg', 'swa', 'swf', 'swz', 'tar', 'tex', 'texi', 'texinfo', 'text', 'tgz', 'tif', 'tiff', 'ttf', 'txt', 'tmp', 'uvproj', 'vdf', 'vimeo', 'viv', 'vivo', 'vrml', 'vsdx', 'vtt', 'wav', 'webm', 'wmv', 'wmx', 'wmz', 'woff', 'wwd', 'xhtml', 'xif', 'xls', 'xlsx', 'xmind', 'xml', 'xsl', 'xsd', 'zip']
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
$data
Definition: storeScorm.php:45