ILIAS  release_8 Revision v8.24
ilSystemSupportContactsGUI Class Reference

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

+ Inheritance diagram for ilSystemSupportContactsGUI:
+ Collaboration diagram for ilSystemSupportContactsGUI:

Public Member Functions

 __construct ()
 Constructor. More...
 
 executeCommand ()
 Execute command. More...
 
 showContacts ()
 Show contacts. More...
 

Static Public Member Functions

static getFooterLink ()
 Get footer link. More...
 
static getFooterText ()
 Get footer text. More...
 

Protected Attributes

 $tpl
 
 $lng
 
 $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 System support contacts

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e

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

Constructor & Destructor Documentation

◆ __construct()

ilSystemSupportContactsGUI::__construct ( )

Constructor.

Definition at line 41 of file class.ilSystemSupportContactsGUI.php.

42 {
43 global $DIC;
44
45 $ilCtrl = $DIC->ctrl();
46 $tpl = $DIC["tpl"];
47 $lng = $DIC->language();
48
49 $this->ctrl = $ilCtrl;
50 $this->tpl = $tpl;
51 $this->lng = $lng;
52 }
global $DIC
Definition: feed.php:28

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

+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilSystemSupportContactsGUI::executeCommand ( )

Execute command.

Definition at line 58 of file class.ilSystemSupportContactsGUI.php.

59 {
60 $cmd = $this->ctrl->getCmd("showContacts");
61 if (in_array($cmd, array("showContacts"))) {
62 $this->$cmd();
63 }
64 }

References ILIAS\Repository\ctrl().

+ Here is the call graph for this function:

◆ getFooterLink()

static ilSystemSupportContactsGUI::getFooterLink ( )
static

Get footer link.

Returns
string footer link

Definition at line 97 of file class.ilSystemSupportContactsGUI.php.

98 {
99 global $DIC;
100
101 $ilCtrl = $DIC->ctrl();
102 $ilUser = $DIC->user();
103
105 if (count($users) > 0) {
106 // #17847 - we cannot use a proper GUI on the login screen
107 if (!$ilUser->getId() || $ilUser->getId() == ANONYMOUS_USER_ID) {
110 );
111 } else {
112 return $ilCtrl->getLinkTargetByClass("ilsystemsupportcontactsgui", "", "", false, false);
113 }
114 }
115
116 return "";
117 }
static prepareFormOutput($a_str, bool $a_strip=false)
static getMailsToAddress()
Get mailto: emails.
static getValidSupportContactIds()
Get valid support contacts.
const ANONYMOUS_USER_ID
Definition: constants.php:27
$ilUser
Definition: imgupload.php:34

References $DIC, $ilUser, ANONYMOUS_USER_ID, ilSystemSupportContacts\getMailsToAddress(), ilSystemSupportContacts\getValidSupportContactIds(), and ilLegacyFormElementsUtil\prepareFormOutput().

Referenced by ilDataCollectionGlobalTemplate\fillFooter(), ilGlobalTemplate\fillFooter(), and ILIAS\UICore\PageContentProvider\getFooterModification().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getFooterText()

static ilSystemSupportContactsGUI::getFooterText ( )
static

Get footer text.

Returns
string footer text

Definition at line 124 of file class.ilSystemSupportContactsGUI.php.

125 {
126 global $DIC;
127
128 $lng = $DIC->language();
129 return $lng->txt("contact_sysadmin");
130 }

References $DIC, and $lng.

Referenced by ilDataCollectionGlobalTemplate\fillFooter(), ilGlobalTemplate\fillFooter(), and ILIAS\UICore\PageContentProvider\getFooterModification().

+ Here is the caller graph for this function:

◆ showContacts()

ilSystemSupportContactsGUI::showContacts ( )

Show contacts.

Definition at line 69 of file class.ilSystemSupportContactsGUI.php.

70 {
71 $this->lng->loadLanguageModule("adm");
72 $this->tpl->loadStandardTemplate();
73 $this->tpl->setTitle($this->lng->txt("adm_support_contacts"));
76
77 $html = "";
79 $pgui = new ilPublicUserProfileGUI($c);
80 //$pgui->setBackUrl($this->ctrl->getLinkTargetByClass("ilinfoscreengui"));
81 $pgui->setEmbedded(true);
82 $html .= $pgui->getHTML();
83 }
84
85 $panel->setBody($html);
86
87 $this->tpl->setContent($panel->getHTML());
88 $this->tpl->printToStdout();
89 }
static getInstance()
const PANEL_STYLE_PRIMARY
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$c
Definition: cli.php:38
if(isset($_FILES['img_file']) &&is_array($_FILES['img_file'])) $panel
Definition: imgupload.php:198

References $c, $panel, ilPanelGUI\getInstance(), ilSystemSupportContacts\getValidSupportContactIds(), ILIAS\Repository\lng(), and ilPanelGUI\PANEL_STYLE_PRIMARY.

+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilSystemSupportContactsGUI::$ctrl
protected

Definition at line 36 of file class.ilSystemSupportContactsGUI.php.

◆ $lng

ilSystemSupportContactsGUI::$lng
protected

Definition at line 34 of file class.ilSystemSupportContactsGUI.php.

Referenced by __construct(), and getFooterText().

◆ $tpl

ilSystemSupportContactsGUI::$tpl
protected

Definition at line 29 of file class.ilSystemSupportContactsGUI.php.

Referenced by __construct().


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