ILIAS  trunk Revision v13.0_alpha-52-g21c366bbdd4
class.InternalGUIService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Blog;
22
28use ILIAS\Blog\Posting\Service\GUIService as PostingGUIService;
31use ILIAS\Blog\Export\GUIService as ExportGUIService;
32use ilObjBlog;
33
35{
36 use GlobalDICGUIServices;
37
38 protected static array $instance = [];
39
40 public function __construct(
42 protected InternalDataService $data_service,
43 protected InternalDomainService $domain_service
44 ) {
45 $this->initGUIServices($DIC);
46 }
47
48 public function navigation(): Navigation\GUIService
49 {
50 return self::$instance["navigation"] ??
51 self::$instance["navigation"] = new Navigation\GUIService(
52 $this->domain_service,
53 $this
54 );
55 }
56
57 public function presentation(): Presentation\GUIService
58 {
59 return self::$instance["presentation"] ??= new Presentation\GUIService(
60 $this->data_service,
61 $this->domain_service,
62 $this
63 );
64 }
65
66 public function editing(): Editing\GUIService
67 {
68 return self::$instance["editing"] ??= new Editing\GUIService(
69 $this->data_service,
70 $this->domain_service,
71 $this
72 );
73 }
74
76 {
77 return new StandardGUIRequest(
78 $this->http(),
79 $this->domain_service->refinery()
80 );
81 }
82
83 public function blogContext(
84 int $node_id,
85 int $id_type,
86 ?int $blog_id,
87 string $month,
88 ?int $author,
89 PermissionManager $permission,
90 bool $call_by_reference = false
93 $node_id,
94 $id_type,
95 $blog_id === null ? null : new ilObjBlog($blog_id, false),
96 $month,
97 $author,
98 $permission,
99 $this->standardRequest(),
100 $call_by_reference
101 );
102 }
103
104 public function contributor(): Contributor\GUIService
105 {
106 return self::$instance["contributor"] ??
107 self::$instance["contributor"] = new Contributor\GUIService(
108 $this->data_service,
109 $this->domain_service,
110 $this
111 );
112 }
113
114 public function exercise(): Exercise\GUIService
115 {
116 return new Exercise\GUIService(
117 $this->data_service,
118 $this->domain_service,
119 $this
120 );
121 }
122
123 public function permanentLink(
124 int $ref_id = 0,
125 int $wsp_id = 0
128 $this->domain_service->staticUrl(),
129 $this,
130 $ref_id,
131 $wsp_id
132 );
133 }
134
135 public function settings(): Settings\GUIService
136 {
137 return self::$instance["settings"] ??
138 self::$instance["settings"] = new Settings\GUIService(
139 $this->data_service,
140 $this->domain_service,
141 $this
142 );
143 }
144
145 public function readingTime(): GUIService
146 {
147 return self::$instance["reading_time"] ??
148 self::$instance["reading_time"] = new ReadingTime\GUIService(
149 $this->data_service,
150 $this->domain_service,
151 $this
152 );
153 }
154
155 public function posting(): PostingGUIService
156 {
157 return self::$instance["posting"] ??= new PostingGUIService(
158 $this->data_service,
159 $this->domain_service,
160 $this
161 );
162 }
163
164 public function rss(): RSSGUI
165 {
166 return self::$instance["rss"] ??= new RSSGUI(
167 $this->data_service,
168 $this->domain_service,
169 $this
170 );
171 }
172
173 public function cmdPerm(PermissionManager $blog_access, int $node_id): BlogCmdPermission
174 {
175 return new BlogCmdPermission(
176 $this->domain_service->lng(),
177 $blog_access,
178 $this->ui()->mainTemplate(),
179 $this->ctrl(),
180 $this->standardRequest(),
181 $this->domain_service->exercise($node_id)
182 );
183 }
184
185 public function export(): ExportGUIService
186 {
187 return self::$instance["export"] ??= new ExportGUIService(
188 $this->data_service,
189 $this->domain_service,
190 $this
191 );
192 }
193
194}
permanentLink(int $ref_id=0, int $wsp_id=0)
blogContext(int $node_id, int $id_type, ?int $blog_id, string $month, ?int $author, PermissionManager $permission, bool $call_by_reference=false)
cmdPerm(PermissionManager $blog_access, int $node_id)
__construct(Container $DIC, protected InternalDataService $data_service, protected InternalDomainService $domain_service)
GUI service for blog postings.
GUI class for handling RSS feed delivery for blogs.
Definition: RSSGUI.php:31
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:38
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...
static http()
Fetches the global http state from ILIAS.
initGUIServices(\ILIAS\DI\Container $DIC)
global $DIC
Definition: shib_login.php:26