ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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
.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.

References $DIC, and ui().

34  {
35  global $DIC;
36 
37  $this->ui = $DIC->ui();
38  $this->lng = $DIC->language();
39  $this->ctrl = $DIC->ctrl();
40  }
global $DIC
Definition: goto.php:24
ui()
Definition: ui.php:5
+ Here is the call graph for this function:

Member Function Documentation

◆ getHTML()

ilSurveyContainsDataMessageBoxGUI::getHTML ( )

Get HTML.

Returns
string

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

References $ctrl, $lng, and $ui.

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  }

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: