ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilSurveyContainsDataMessageBoxGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
4
14{
18 protected $ui;
19
23 protected $lng;
24
28 protected $ctrl;
29
33 public function __construct()
34 {
35 global $DIC;
36
37 $this->ui = $DIC->ui();
38 $this->lng = $DIC->language();
39 $this->ctrl = $DIC->ctrl();
40 }
41
47 public function getHTML()
48 {
51 $ui = $this->ui;
52
53 $mbox = $ui->factory()->messageBox()->info($lng->txt("survey_has_datasets_warning_page_view"))
54 ->withLinks([$ui->factory()->link()->standard(
55 $lng->txt("survey_has_datasets_warning_page_view_link"),
56 $ctrl->getLinkTargetByClass(["ilObjSurveyGUI", "ilSurveyParticipantsGUI"], "maintenance")
57 )]);
58
59 return $ui->renderer()->render($mbox);
60 }
61}
An exception for terminatinating execution or to throw for unit testing.
Message box for survey, when data is alrady available.
global $DIC
Definition: goto.php:24
ui()
Definition: ui.php:5