ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilSurveyContainsDataMessageBoxGUI.php
Go to the documentation of this file.
1<?php
2
25{
26 protected \ILIAS\DI\UIServices $ui;
27 protected ilLanguage $lng;
28 protected ilCtrl $ctrl;
29
30 public function __construct()
31 {
32 global $DIC;
33
34 $this->ui = $DIC->ui();
35 $this->lng = $DIC->language();
36 $this->ctrl = $DIC->ctrl();
37 }
38
39 public function getHTML(): string
40 {
43 $ui = $this->ui;
44
45 $mbox = $ui->factory()->messageBox()->info($lng->txt("survey_has_datasets_warning_page_view"))
46 ->withLinks([$ui->factory()->link()->standard(
47 $lng->txt("survey_has_datasets_warning_page_view_link"),
48 $ctrl->getLinkTargetByClass(["ilObjSurveyGUI", "ilSurveyParticipantsGUI"], "maintenance")
49 )]);
50
51 return $ui->renderer()->render($mbox);
52 }
53}
Class ilCtrl provides processing control methods.
getLinkTargetByClass( $a_class, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
@inheritDoc
language handling
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
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