ILIAS  release_8 Revision v8.24
class.InternalDomainService.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
21namespace ILIAS\Style\Content;
22
28use ilRbacSystem;
29
34{
36
37 protected ?\ilLogger $log = null;
38 protected Container $dic;
42
43 public function __construct(
47 ) {
48 $this->rbacsystem = $DIC->rbac()->system();
49 $this->repo_service = $repo_service;
50 $this->initDomainServices($DIC);
51 $this->dic = $DIC;
52 }
53
54 // access manager
55 public function access(
56 int $ref_id = 0,
57 int $user_id = 0
60 $this->rbacsystem,
61 $ref_id,
62 $user_id
63 );
64 }
65
66 public function characteristic(
67 int $style_id,
68 StyleAccessManager $access_manager
71 $style_id,
72 $access_manager,
73 $this->repo_service->characteristic(),
74 $this->repo_service->characteristicCopyPaste(),
75 $this->repo_service->color(),
76 $this->user()
77 );
78 }
79
80 public function color(
81 int $style_id,
82 StyleAccessManager $access_manager
83 ): ColorManager {
85 $style_id,
86 $access_manager,
87 $this->repo_service->characteristic(),
88 $this->repo_service->color()
89 );
90 }
91
92 public function image(
93 int $style_id,
94 StyleAccessManager $access_manager
95 ): ImageManager {
97 $style_id,
98 $access_manager,
99 $this->repo_service->image()
100 );
101 }
102
104 {
105 return new ContainerManager(
106 $this->repo_service,
107 $ref_id
108 );
109 }
110
115 public function object(int $ref_id, int $obj_id = 0): ObjectManager
116 {
117 return new ObjectManager(
118 $this->repo_service,
119 $this,
120 $ref_id,
121 $obj_id
122 );
123 }
124
125 public function log(): \ilLogger
126 {
127 if (is_null($this->log)) {
128 $this->log = $this->logger()->styl();
129 }
130 return $this->log;
131 }
132}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:32
Manages access to content style editing.
Main business logic for characteristics.
Manages container related content style behaviour.
Main business logic for content style images.
image(int $style_id, StyleAccessManager $access_manager)
__construct(Container $DIC, InternalRepoService $repo_service, InternalDataService $data_service)
characteristic(int $style_id, StyleAccessManager $access_manager)
object(int $ref_id, int $obj_id=0)
Objects without ref id (e.g.
color(int $style_id, StyleAccessManager $access_manager)
Manages repository object related content style behaviour.
Component logger with individual log levels by component id.
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', 'wav', 'webm', 'wmv', 'wmx', 'wmz', 'woff', 'wwd', 'xhtml', 'xif', 'xls', 'xlsx', 'xmind', 'xml', 'xsl', 'xsd', 'zip']
global $DIC
Definition: feed.php:28
$ref_id
Definition: ltiauth.php:67
initDomainServices(\ILIAS\DI\Container $DIC)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$log
Definition: result.php:33