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\Style\Content;
22
28use ilRbacSystem;
36
41{
42 use GlobalDICDomainServices;
43
44 protected ?\ilLogger $log = null;
45 protected Container $dic;
48
49 public function __construct(
51 InternalRepoService $repo_service,
52 protected InternalDataService $data_service
53 ) {
54 $this->rbacsystem = $DIC->rbac()->system();
55 $this->repo_service = $repo_service;
56 $this->initDomainServices($DIC);
57 $this->dic = $DIC;
58 }
59
60 // access manager
61 public function access(
62 int $ref_id = 0,
63 int $user_id = 0
66 $this->rbacsystem,
67 $ref_id,
69 );
70 }
71
72 public function characteristic(
73 int $style_id,
74 StyleAccessManager $access_manager
77 $style_id,
78 $access_manager,
79 $this->repo_service->characteristic(),
80 $this->repo_service->characteristicCopyPaste(),
81 $this->repo_service->color(),
82 $this->user()
83 );
84 }
85
86 public function characteristicRetrieval(
87 CharacteristicManager $manager,
88 string $super_type
90 return new CharacteristicRetrieval($manager, $super_type);
91 }
92
93 public function color(
94 int $style_id,
95 StyleAccessManager $access_manager
96 ): ColorManager {
98 $style_id,
99 $access_manager,
100 $this->repo_service->characteristic(),
101 $this->repo_service->color()
102 );
103 }
104
105 public function image(
106 int $style_id,
107 StyleAccessManager $access_manager
108 ): ImageManager {
110 $style_id,
111 $access_manager,
112 $this->repo_service,
114 );
115 }
116
117 public function imageRetrieval(ImageManager $image_manager): ImageRetrieval
118 {
119 return new ImageRetrieval($image_manager);
120 }
121
122 public function colorRetrieval(\ilObjStyleSheet $style_obj): ColorRetrieval
123 {
124 return new ColorRetrieval($style_obj);
125 }
126
127 public function templateRetrieval(
128 \ilObjStyleSheet $style_obj,
129 string $temp_type
131 return new TemplateRetrieval($style_obj, $temp_type);
132 }
133
135 {
136 return new ContentStylesRetrieval($data);
137 }
138
139 public function mediaQueryRetrieval(
140 \ilObjStyleSheet $style_obj
142 return new MediaQueryRetrieval($style_obj);
143 }
144
145 public function repositoryContainer(int $ref_id): ContainerManager
146 {
147 return new ContainerManager(
148 $this->repo_service,
149 $ref_id
150 );
151 }
152
157 public function object(int $ref_id, int $obj_id = 0): ObjectManager
158 {
159 return new ObjectManager(
160 $this->repo_service,
161 $this,
162 $ref_id,
163 $obj_id
164 );
165 }
166
167 public function log(): \ilLogger
168 {
169 if (is_null($this->log)) {
170 $this->log = $this->logger()->styl();
171 }
172 return $this->log;
173 }
174
175 public function cssBuilder(
176 \ilObjStyleSheet $style,
177 string $image_dir = ""
178 ): CSSBuilder {
179 return new CSSBuilder(
180 $style,
181 $image_dir
182 );
183 }
184
185 public function style($style_id): StyleManager
186 {
187 return new StyleManager(
188 $this->data_service,
189 $this->repo_service,
190 $this,
192 $style_id
193 );
194 }
195
196}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:38
Manages access to content style editing.
Main business logic for characteristics.
Manages container related content style behaviour.
Main business logic for content style images.
characteristicRetrieval(CharacteristicManager $manager, string $super_type)
image(int $style_id, StyleAccessManager $access_manager)
templateRetrieval(\ilObjStyleSheet $style_obj, string $temp_type)
characteristic(int $style_id, StyleAccessManager $access_manager)
object(int $ref_id, int $obj_id=0)
Objects without ref id (e.g.
__construct(Container $DIC, InternalRepoService $repo_service, protected InternalDataService $data_service)
cssBuilder(\ilObjStyleSheet $style, string $image_dir="")
color(int $style_id, StyleAccessManager $access_manager)
Manages repository object related content style behaviour.
Component logger with individual log levels by component id.
Class ilObjStyleSheet.
class ilRbacSystem system function like checkAccess, addActiveRole ... Supporting system functions ar...
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...
$log
Definition: ltiauth.php:50
initDomainServices(\ILIAS\DI\Container $DIC)
global $DIC
Definition: shib_login.php:26
$data
Definition: storeScorm.php:45