ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.InternalGUIService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Survey;
22 
28 
35 {
37 
38  protected \ilObjectService $object_service;
42 
43  public function __construct(
44  \ilObjectService $object_service,
45  ModeFactory $mode_factory,
46  InternalDomainService $domain_service
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(),
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 }
Info screen wrapper for the survey.
initGUIServices(\ILIAS\DI\Container $DIC)
ilObjSurveyGUI: ilSurveyEvaluationGUI, ilSurveyExecutionGUI ilObjSurveyGUI: ilObjectMetaDataGUI, ilPermissionGUI ilObjSurveyGUI: ilInfoScreenGUI, ilObjectCopyGUI ilObjSurveyGUI: ilSurveySkillDeterminationGUI ilObjSurveyGUI: ilCommonActionDispatcherGUI, ilSurveySkillGUI ilObjSurveyGUI: ilSurveyEditorGUI, ilSurveyConstraintsGUI ilObjSurveyGUI: ilSurveyParticipantsGUI, ilLearningProgressGUI ilObjSurveyGUI: ilExportGUI, ilLTIProviderObjectSettingGUI ilObjSurveyGUI: ILIAS
infoScreen(\ilObjSurveyGUI $survey_gui, \ilToolbarGUI $toolbar)
global $DIC
Definition: shib_login.php:22
__construct(\ilObjectService $object_service, ModeFactory $mode_factory, InternalDomainService $domain_service)