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\Survey;
22
29
35{
37
41
42 public function __construct(
46 ) {
47 global $DIC;
48
49 $this->initDomainServices($DIC);
50 $this->repo_tree = $DIC->repositoryTree();
51 $this->access = $DIC->access();
52 $this->lng = $DIC->language();
53
54 $this->repo_service = $repo_service;
55 $this->data_service = $data_service;
56
57 $this->mode_factory = $mode_factory;
58 }
59
60 public function log(): \ilLogger
61 {
62 return $this->logger()->svy();
63 }
64
65 public function modeFeatureConfig(int $mode): FeatureConfig
66 {
67 $mode_provider = $this->mode_factory->getModeById($mode);
68 return $mode_provider->getFeatureConfig();
69 }
70
71 public function participants(): Participants\DomainService
72 {
74 $this,
75 $this->repo_service
76 );
77 }
78
79 public function execution(): Execution\DomainService
80 {
81 return new Execution\DomainService(
82 $this->repo_service,
83 $this
84 );
85 }
86
87 public function access(int $ref_id, int $user_id): Access\AccessManager
88 {
89 return new Access\AccessManager(
90 $this,
91 $this->access,
92 $ref_id,
93 $user_id
94 );
95 }
96
97 public function code(\ilObjSurvey $survey, int $user_id): CodeManager
98 {
99 return new CodeManager(
100 $this->repo_service->code(),
101 $this->data_service,
102 $survey,
103 $this,
104 $user_id
105 );
106 }
107
108 public function evaluation(
109 \ilObjSurvey $survey,
110 int $user_id,
111 int $requested_appr_id = 0,
112 string $requested_rater_id = ""
113 ): Evaluation\EvaluationManager {
114 return new Evaluation\EvaluationManager(
115 $this,
116 $this->repo_service,
117 $survey,
118 $user_id,
119 $requested_appr_id,
120 $requested_rater_id
121 );
122 }
123
124 public function edit(): EditManager
125 {
126 return new EditManager(
127 $this->repo_service,
128 $this
129 );
130 }
131
132 public function sequence(int $survey_id, \ilObjSurvey $survey): SequenceManager
133 {
134 return new SequenceManager(
135 $this->repo_service,
136 $this,
137 $survey_id,
138 $survey
139 );
140 }
141
142}
evaluation(\ilObjSurvey $survey, int $user_id, int $requested_appr_id=0, string $requested_rater_id="")
sequence(int $survey_id, \ilObjSurvey $survey)
code(\ilObjSurvey $survey, int $user_id)
__construct(ModeFactory $mode_factory, InternalRepoService $repo_service, InternalDataService $data_service)
Component logger with individual log levels by component id.
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...