ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilSurveyContainsDataMessageBoxGUI Class Reference

Message box for survey, when data is alrady available. More...

+ Collaboration diagram for ilSurveyContainsDataMessageBoxGUI:

Public Member Functions

 __construct ()
 Constructor. More...
 
 getHTML ()
 Get HTML. More...
 

Protected Attributes

 $ui
 
 $lng
 
 $ctrl
 

Detailed Description

Message box for survey, when data is alrady available.

Should be moved to some survey ui subservice in the future.

Author
@leifos.de

Definition at line 13 of file class.ilSurveyContainsDataMessageBoxGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilSurveyContainsDataMessageBoxGUI::__construct ( )

Constructor.

Definition at line 33 of file class.ilSurveyContainsDataMessageBoxGUI.php.

34 {
35 global $DIC;
36
37 $this->ui = $DIC->ui();
38 $this->lng = $DIC->language();
39 $this->ctrl = $DIC->ctrl();
40 }
global $DIC
Definition: saml.php:7

References $DIC.

Member Function Documentation

◆ getHTML()

ilSurveyContainsDataMessageBoxGUI::getHTML ( )

Get HTML.

Returns
string

Definition at line 47 of file class.ilSurveyContainsDataMessageBoxGUI.php.

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 }

References $ctrl, $lng, and $ui.

Field Documentation

◆ $ctrl

ilSurveyContainsDataMessageBoxGUI::$ctrl
protected

Definition at line 28 of file class.ilSurveyContainsDataMessageBoxGUI.php.

Referenced by getHTML().

◆ $lng

ilSurveyContainsDataMessageBoxGUI::$lng
protected

Definition at line 23 of file class.ilSurveyContainsDataMessageBoxGUI.php.

Referenced by getHTML().

◆ $ui

ilSurveyContainsDataMessageBoxGUI::$ui
protected

Definition at line 18 of file class.ilSurveyContainsDataMessageBoxGUI.php.

Referenced by getHTML().


The documentation for this class was generated from the following file: