ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilSurveyContainsDataMessageBoxGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilSurveyContainsDataMessageBoxGUI:

Public Member Functions

 __construct ()
 
 getHTML ()
 

Protected Attributes

ILIAS DI UIServices $ui
 
ilLanguage $lng
 
ilCtrl $ctrl
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Message box for survey, when data is alrady available. Should be moved to some survey ui subservice in the future.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

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

Constructor & Destructor Documentation

◆ __construct()

ilSurveyContainsDataMessageBoxGUI::__construct ( )

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

References $DIC, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\ui().

31  {
32  global $DIC;
33 
34  $this->ui = $DIC->ui();
35  $this->lng = $DIC->language();
36  $this->ctrl = $DIC->ctrl();
37  }
global $DIC
Definition: shib_login.php:22
+ Here is the call graph for this function:

Member Function Documentation

◆ getHTML()

ilSurveyContainsDataMessageBoxGUI::getHTML ( )

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

References $ctrl, $lng, $ui, ilCtrl\getLinkTargetByClass(), and ilLanguage\txt().

39  : string
40  {
42  $lng = $this->lng;
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  }
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...
getLinkTargetByClass( $a_class, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false, bool $has_xml_style=false)
+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilCtrl ilSurveyContainsDataMessageBoxGUI::$ctrl
protected

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

Referenced by getHTML().

◆ $lng

ilLanguage ilSurveyContainsDataMessageBoxGUI::$lng
protected

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

Referenced by getHTML().

◆ $ui

ILIAS DI UIServices ilSurveyContainsDataMessageBoxGUI::$ui
protected

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

Referenced by getHTML().


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