ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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  {
50  $lng = $this->lng;
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 }
global $DIC
Definition: saml.php:7
Message box for survey, when data is alrady available.