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\BookingManager;
22
31
36{
37 use GlobalDICDomainServices;
38
39 protected static array $instances = [];
40 protected ?\ilLogger $book_log = null;
43
44 public function __construct(
48 ) {
49 $this->repo_service = $repo_service;
50 $this->data_service = $data_service;
51 $this->initDomainServices($DIC);
52 }
53
54 public function log(): \ilLogger
55 {
56 return self::$instances["book_log"] ??= $this->logger()->book();
57 }
58
59 public function preferences(
60 \ilObjBookingPool $pool
62 return self::$instances["preferences"][$pool->getId()] ??= new \ilBookingPreferencesManager(
63 $pool,
64 $this->repo_service->preferenceBasedBooking()
65 );
66 }
67
68 public function process(): BookingProcessManager
69 {
70 return self::$instances["process"] ??= new BookingProcessManager(
71 $this->data_service,
72 $this->repo_service,
73 $this
74 );
75 }
76
77 public function objects(int $pool_id): ObjectsManager
78 {
79 return self::$instances["objects"][$pool_id] ??= new ObjectsManager(
80 $this->data_service,
81 $this->repo_service,
82 $this,
85 $pool_id
86 );
87 }
88
89 public function schedules(int $pool_id): ScheduleManager
90 {
91 return self::$instances["schedules"][$pool_id] ??= new ScheduleManager(
92 $this->data_service,
93 $this->repo_service,
94 $this,
95 $pool_id
96 );
97 }
98
99 public function reservations(): Reservations\ReservationManager
100 {
101 return self::$instances["reservations"] ??= new Reservations\ReservationManager(
102 $this->data_service,
103 $this->repo_service,
104 $this
105 );
106 }
107
108 public function participants(): Participants\ParticipantsManager
109 {
110 return self::$instances["participants"] ??= new Participants\ParticipantsManager(
111 $this->data_service,
112 $this->repo_service,
113 $this
114 );
115 }
116
117 public function objectSelection(int $pool_id): BookingProcess\ObjectSelectionManager
118 {
119 return self::$instances["object_sel"][$pool_id] ??= new BookingProcess\ObjectSelectionManager(
120 $this->data_service,
121 $this->repo_service,
122 $this,
123 $pool_id
124 );
125 }
126
127 public function userEvent(): UserEvent
128 {
129 return self::$instances["user_event"] ??= new UserEvent($this);
130 }
131
132 public function objectEvent(): ObjectEvent
133 {
134 return new ObjectEvent();
135 }
136
138 {
139 return self::$instances["settings"] ??= new SettingsManager(
140 $this->data_service,
141 $this->repo_service,
142 $this
143 );
144 }
145
146 public function access(): Access\AccessManager
147 {
148 return new Access\AccessManager(
149 $this,
150 $this->DIC->access()
151 );
152 }
153
154}
Author: Alexander Killing killing@leifos.de
__construct(Container $DIC, InternalRepoService $repo_service, InternalDataService $data_service)
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:38
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Component logger with individual log levels by component id.
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...
Public access-handling service of the AccessControl component.
Definition: Access.php:31
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