ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.InternalGUIService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Survey;
22
26use Psr\Http\Message\ServerRequestInterface;
28
35{
36 use GlobalDICGUIServices;
37
38 protected \ilObjectService $object_service;
41 protected ServerRequestInterface $request;
42
43 public function __construct(
47 ) {
48 global $DIC;
49
50 $this->initGUIServices($DIC);
51 $this->object_service = $object_service;
52 $this->mode_factory = $mode_factory;
53 $this->domain_service = $domain_service;
54
55 $this->request = $DIC->http()->request();
56 }
57
58 public function surveySettings(\ilObjSurvey $survey): Settings\UIFactory
59 {
60 return new Settings\UIFactory(
61 $this,
62 $this->object_service,
63 $survey,
64 $this->domain_service
65 );
66 }
67
68 public function evaluation(\ilObjSurvey $survey): Evaluation\GUIService
69 {
70 return new Evaluation\GUIService(
71 $this,
72 $this->object_service,
73 $survey,
74 $this->domain_service
75 );
76 }
77
78 public function editing(): Editing\GUIService
79 {
80 return new Editing\GUIService(
81 $this,
82 $this->domain_service
83 );
84 }
85
86 public function execution(): Execution\GUIService
87 {
88 return new Execution\GUIService(
89 $this,
90 $this->domain_service
91 );
92 }
93
94 public function infoScreen(
95 \ilObjSurveyGUI $survey_gui,
96 \ilToolbarGUI $toolbar
97 ): \ilInfoScreenGUI {
98 $info_screen = new InfoScreen\InfoScreenGUI(
99 $survey_gui,
100 $toolbar,
101 $this->domain_service->user(),
102 $this->domain_service->lng(),
103 $this->ctrl(),
104 $this->request,
105 $this->domain_service
106 );
107
108 return $info_screen->getInfoScreenGUI();
109 }
110
111 public function modeUIModifier(int $mode): UIModifier
112 {
113 $mode_provider = $this->mode_factory->getModeById($mode);
114 return $mode_provider->getUIModifier();
115 }
116
117 public function lng(): \ilLanguage
118 {
119 return $this->domain_service->lng();
120 }
121
122 public function print(): PrintView\GUIService
123 {
124 return new PrintView\GUIService(
125 $this,
126 $this->object_service,
127 $this->domain_service
128 );
129 }
130}
infoScreen(\ilObjSurveyGUI $survey_gui, \ilToolbarGUI $toolbar)
__construct(\ilObjectService $object_service, ModeFactory $mode_factory, InternalDomainService $domain_service)
Class ilInfoScreenGUI.
language handling
@ilCtrl_Calls ilObjSurveyGUI: ilSurveyEvaluationGUI, ilSurveyExecutionGUI @ilCtrl_Calls ilObjSurveyGU...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
initGUIServices(\ILIAS\DI\Container $DIC)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:26