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\Exercise;
22
42
44{
45 use GlobalDICDomainServices;
46
49 protected array $instance = [];
51
52 public function __construct(
56 ) {
57 $this->data = $data;
58 $this->repo = $repo;
59 $this->initDomainServices($dic);
60 $this->assignment_service = new Assignment\DomainService(
61 $this,
62 $repo
63 );
64 }
65
66 public function log(): \ilLogger
67 {
68 return $this->logger()->exc();
69 }
70
71 public function object(int $ref_id): ObjectManager
72 {
73 return new ObjectManager($ref_id);
74 }
75
77 {
79 }
80
81 public function submission(int $ass_id): SubmissionManager
82 {
83 return $this->instance["subm"][$ass_id] ??= new SubmissionManager(
84 $this->repo,
85 $this,
88 );
89 }
90
92 {
93 return new PublicSubmissionsRetrieval($this, $assignment);
94 }
95
97 {
98 return new DeliveredFilesRetrieval($this, $submission);
99 }
100
102 \ilExAssignment $assignment,
103 bool $show_peer_review
105 return new TextSubmissionsRetrieval($this, $assignment, $show_peer_review);
106 }
107
111 public function gradesRetrieval(
113 \ilExerciseMembers $members,
114 array $assignments
115 ): GradesRetrieval {
116 return new GradesRetrieval($this, $exercise, $members, $assignments);
117 }
118
120 {
121 return new TeamLogRetrieval($this, $team);
122 }
123
124 public function teamMembersRetrieval(
125 \ilExAssignmentTeam $team,
126 int $parent_ref_id,
127 bool $edit_permission
130 $this,
131 $team,
132 $parent_ref_id,
133 $edit_permission
134 );
135 }
136
138 \ilExAssignment $assignment
140 return new PeerReviewOverviewRetrieval($this, $assignment);
141 }
142
144 \ilExAssignment $assignment
146 return new MultiFeedbackConfirmationRetrieval($this, $assignment);
147 }
148
149 public function peerReview(): DomainService
150 {
151 return $this->instance["peer_review"] ??= new DomainService(
152 $this->repo,
153 $this
154 );
155 }
156
157 public function notification(int $ref_id): NotificationManager
158 {
159 return $this->instance["notification"][$ref_id] ??= new NotificationManager(
160 $this,
161 $ref_id
162 );
163 }
164
165 public function team(): TeamManager
166 {
167 return $this->instance["team"] ??= new TeamManager(
168 $this->repo,
169 $this,
171 );
172 }
173
175 {
176 return $this->instance["idl"] ??= new IndividualDeadlineManager();
177 }
178
179 public function exercise(
180 int $obj_id
181 ): ExerciseManager {
182 return $this->instance["exercise"][$obj_id] ??= new ExerciseManager(
183 $this->repo,
184 $this,
185 $obj_id
186 );
187 }
188
189 public function exerciseSettings(
190 ): SettingsManager {
191 return $this->instance["settings"] ??= new SettingsManager(
192 $this->data,
193 $this->repo,
194 $this
195 );
196 }
197
198 public function userEvent(): UserEvent
199 {
200 return new UserEvent(
201 $this->repo,
202 $this
203 );
204 }
205
206 public function permission(): PermissionManager
207 {
208 return $this->instance["perm"] ??= new PermissionManager(
209 $this
210 );
211 }
212
213}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:38
Internal factory for data objects.
teamMembersRetrieval(\ilExAssignmentTeam $team, int $parent_ref_id, bool $edit_permission)
multiFeedbackConfirmationRetrieval(\ilExAssignment $assignment)
deliveredFilesRetrieval(\ilExSubmission $submission)
textSubmissionsRetrieval(\ilExAssignment $assignment, bool $show_peer_review)
peerReviewOverviewRetrieval(\ilExAssignment $assignment)
publicSubmissionsRetrieval(\ilExAssignment $assignment)
gradesRetrieval(\ilObjExercise $exercise, \ilExerciseMembers $members, array $assignments)
__construct(Container $dic, InternalDataService $data, InternalRepoService $repo)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Exercise assignment.
Exercise submission //TODO: This class has many static methods related to delivered "files".
Class ilExerciseMembers.
Component logger with individual log levels by component id.
Class ilObjExercise.
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
initDomainServices(\ILIAS\DI\Container $DIC)
ilObjExercise $exercise