90 $output_gui = new \ilSurveyExecutionGUI(
$survey);
92 $info = new \ilInfoScreenGUI($this->survey_gui);
93 $info->enablePrivateNotes();
101 $this->run_manager->initSession($this->requested_code);
103 $this->main_tpl->setOnScreenMessage(
"failure", $e->getMessage(),
true);
104 $this->
ctrl->redirect($this->survey_gui,
"infoScreen");
106 $anonymous_code = $this->run_manager->getCode();
109 if ($this->status_manager->cantStartAgain()) {
110 $this->main_tpl->setOnScreenMessage(
'info', $this->
lng->txt(
"already_completed_survey"));
116 if ($this->status_manager->canViewUserResults()) {
118 $button->setCaption(
"svy_view_own_results");
119 $button->setUrl($this->
ctrl->getLinkTarget($this->survey_gui,
"viewUserResults"));
125 if ($this->status_manager->canMailUserResults()) {
131 $mail = new \ilTextInputGUI($this->
lng->txt(
"email"),
"mail");
140 $button->setCaption(
"svy_mail_send_confirmation");
141 $button->setCommand(
"mailUserResults");
148 $info->setFormAction($this->
ctrl->getFormAction($this->survey_gui,
"infoScreen"));
149 $info->addSection($this->
lng->txt(
"anonymization"));
150 $info->addProperty(
"", $this->
lng->txt(
"anonymize_anonymous_introduction"));
151 $info->addPropertyTextinput($this->
lng->txt(
"enter_anonymous_id"),
"anonymous_id",
"",
"8",
"infoScreen", $this->
lng->txt(
"submit"),
true);
158 $link = $this->
ctrl->getLinkTargetByClass(
"ilsurveyparticipantsgui",
"addSelfAppraisee");
160 $this->
lng->txt(
"survey_360_add_self_appraisee"),
183 $info->addSection($this->
lng->txt(
"introduction"));
185 "<br />" . $info->getHiddenToggleButton());
187 $info->addSection($this->
lng->txt(
"show_details"));
188 $info->addProperty(
"", $info->getHiddenToggleButton());
191 $info->hideFurtherSections(
false);
193 if (!$this->feature_config->usesAppraisees()) {
194 $info->addSection($this->
lng->txt(
"svy_general_properties"));
197 $this->
lng->txt(
"survey_results_anonymization"),
199 ? $this->
lng->txt(
"survey_results_personalized_info")
200 : $this->
lng->txt(
"survey_results_anonymized_info")
203 if ($this->access_manager->canAccessEvaluation()) {
204 $info->addProperty($this->
lng->txt(
"evaluation_access"), $this->
lng->txt(
"evaluation_access_info"));
addAppraiseeInfo(\ilInfoScreenGUI $info)
mustEnterCode(string $code="")
Check if user must enter code to start (and currently is able to start)
addStartResumeSection(\ilInfoScreenGUI $info, string $anonymous_code, $output_gui)
Add start/resume buttons or appraisee list to info screen.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
prepareTextareaOutput(string $txt_output)
Prepares a string for a text area output in surveys.
displayNotStartableReasons(\ilInfoScreenGUI $info)
canAddItselfAsAppraisee()
Checks if a user can add himself as an appraisee.
Participants StatusManager $status_manager