ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.InfoScreenGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27use Psr\Http\Message\ServerRequestInterface;
28
35{
36 protected \ILIAS\Survey\InternalGUIService $gui;
37 protected \ILIAS\DI\UIServices $ui;
38 protected \ilObjSurvey $survey;
39 protected \ilObjUser $user;
40 protected \ilToolbarGUI $toolbar;
41 protected \ilObjSurveyGUI $survey_gui;
45 protected ServerRequestInterface $request;
46 protected string $requested_code;
47 protected \ILIAS\Survey\Mode\FeatureConfig $feature_config;
48 protected \ilLanguage $lng;
49 protected \ilCtrl $ctrl;
50 private \ilGlobalTemplateInterface $main_tpl;
51
52 public function __construct(
58 ServerRequestInterface $request,
59 InternalDomainService $domain_service
60 ) {
61 global $DIC;
62 $this->main_tpl = $DIC->ui()->mainTemplate();
63 $this->user = $user;
64 $this->toolbar = $toolbar;
65 $this->survey_gui = $survey_gui;
66 $this->ui = $DIC->ui();
69 $this->survey = $survey;
70 $this->status_manager = $domain_service->participants()->status($this->survey, $user->getId());
71 $this->access_manager = $domain_service->access($this->survey->getRefId(), $user->getId());
72 $this->run_manager = $domain_service->execution()->run($this->survey, $user->getId());
73 $this->feature_config = $domain_service->modeFeatureConfig($this->survey->getMode());
74
75 $this->lng = $lng;
76 $this->ctrl = $ctrl;
77
78 $body = $request->getParsedBody();
79 $this->requested_code = (string) ($body["anonymous_id"] ?? "");
80 $this->gui = $DIC->survey()->internal()->gui();
81 }
82
84 {
86
87 $info = new \ilInfoScreenGUI($this->survey_gui);
88 $info->enablePrivateNotes();
89
90
91 $info->addMetaDataSections($survey->getId(), 0, $survey->getType());
92
93 return $info;
94 }
95
96
97}
Survey Run Note: The manager should get the current user id passed.
Info screen wrapper for the survey.
Participants StatusManager $status_manager
ILIAS Survey Mode FeatureConfig $feature_config
ILIAS Survey InternalGUIService $gui
__construct()
Constructor setup ILIAS global object @access public.
Definition: class.ilias.php:76
Class ilCtrl provides processing control methods.
Class ilInfoScreenGUI.
language handling
@ilCtrl_Calls ilObjSurveyGUI: ilSurveyEvaluationGUI, ilSurveyExecutionGUI @ilCtrl_Calls ilObjSurveyGU...
User class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$info
Definition: entry_point.php:21
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