ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilSystemSupportContactsGUI Class Reference

System support contacts. More...

+ 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

 $ctrl
 

Detailed Description

System support contacts.

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

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

Constructor & Destructor Documentation

◆ __construct()

ilSystemSupportContactsGUI::__construct ( )

Constructor.

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

20 {
21 global $ilCtrl, $tpl, $lng;
22
23 $this->ctrl = $ilCtrl;
24 $this->tpl = $tpl;
25 $this->lng = $lng;
26 }
global $tpl
Definition: ilias.php:8
global $ilCtrl
Definition: ilias.php:18
global $lng
Definition: privfeed.php:40

References $ilCtrl, $lng, and $tpl.

Member Function Documentation

◆ executeCommand()

ilSystemSupportContactsGUI::executeCommand ( )

Execute command.

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

33 {
34 $cmd = $this->ctrl->getCmd("showContacts");
35 if (in_array($cmd, array("showContacts")))
36 {
37 $this->$cmd();
38 }
39 }
$cmd
Definition: sahs_server.php:35

References $cmd.

◆ getFooterLink()

static ilSystemSupportContactsGUI::getFooterLink ( )
static

Get footer link.

Returns
string footer link

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

77 {
78 global $ilCtrl, $ilUser;
79
80 include_once("./Modules/SystemFolder/classes/class.ilSystemSupportContacts.php");
81
83 if (count($users) > 0)
84 {
85 // #17847 - we cannot use a proper GUI on the login screen
86 if(!$ilUser->getId())
87 {
88 foreach($users as $user)
89 {
90 $mail = ilObjUser::_lookupEmail($user);
91 if(trim($mail))
92 {
93 return "mailto:".$mail;
94 }
95 }
96 }
97 else
98 {
99 return $ilCtrl->getLinkTargetByClass("ilsystemsupportcontactsgui", "", "", false, false);
100 }
101 }
102
103
104 /*$m = ilUtil::prepareFormOutput(ilSystemSupportContacts::getMailToAddress());
105 if ($m != "")
106 {
107 return "mailto:".$m;
108 }*/
109 return "";
110 }
_lookupEmail($a_user_id)
Lookup email.
static getValidSupportContactIds()
Get valid support contacts.
global $ilUser
Definition: imgupload.php:15

References $ilCtrl, $ilUser, ilObjUser\_lookupEmail(), and ilSystemSupportContacts\getValidSupportContactIds().

Referenced by ilTemplate\addILIASFooter().

+ 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 117 of file class.ilSystemSupportContactsGUI.php.

118 {
119 global $lng;
120 return $lng->txt("contact_sysadmin");
121 }

References $lng.

Referenced by ilTemplate\addILIASFooter().

+ Here is the caller graph for this function:

◆ showContacts()

ilSystemSupportContactsGUI::showContacts ( )

Show contacts.

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

45 {
46 $this->lng->loadLanguageModule("adm");
47 $this->tpl->getStandardTemplate();
48 $this->tpl->setTitle($this->lng->txt("adm_support_contacts"));
49 include_once("./Services/UIComponent/Panel/classes/class.ilPanelGUI.php");
50 $panel = ilPanelGUI::getInstance();
51 $panel->setPanelStyle(ilPanelGUI::PANEL_STYLE_PRIMARY);
52
53 $html = "";
54 include_once("./Modules/SystemFolder/classes/class.ilSystemSupportContacts.php");
56 {
57 include_once("./Services/User/classes/class.ilPublicUserProfileGUI.php");
58 $pgui = new ilPublicUserProfileGUI($c);
59 //$pgui->setBackUrl($this->ctrl->getLinkTargetByClass("ilinfoscreengui"));
60 $pgui->setEmbedded(true);
61 $html.= $pgui->getHTML();
62 }
63
64 $panel->setBody($html);
65
66 $this->tpl->setContent($panel->getHTML());
67 $this->tpl->show();
68 }
static getInstance()
Get instance.
const PANEL_STYLE_PRIMARY
GUI class for public user profile presentation.
$html
Definition: example_001.php:87

References $html, ilPanelGUI\getInstance(), ilSystemSupportContacts\getValidSupportContactIds(), and ilPanelGUI\PANEL_STYLE_PRIMARY.

+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilSystemSupportContactsGUI::$ctrl
protected

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


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