ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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.

References $ilCtrl, $lng, and $tpl.

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:17

Member Function Documentation

◆ executeCommand()

ilSystemSupportContactsGUI::executeCommand ( )

Execute command.

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

References $cmd, and array.

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
Create styles array
The data for the language used.

◆ getFooterLink()

static ilSystemSupportContactsGUI::getFooterLink ( )
static

Get footer link.

Returns
string footer link

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

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

Referenced by ilTemplate\addILIASFooter().

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  }
global $ilCtrl
Definition: ilias.php:18
$ilUser
Definition: imgupload.php:18
static _lookupEmail($a_user_id)
Lookup email.
static getValidSupportContactIds()
Get valid support contacts.
+ 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.

References $lng.

Referenced by ilTemplate\addILIASFooter().

118  {
119  global $lng;
120  return $lng->txt("contact_sysadmin");
121  }
global $lng
Definition: privfeed.php:17
+ Here is the caller graph for this function:

◆ showContacts()

ilSystemSupportContactsGUI::showContacts ( )

Show contacts.

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

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

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  }
const PANEL_STYLE_PRIMARY
GUI class for public user profile presentation.
static getInstance()
Get instance.
static getValidSupportContactIds()
Get valid support contacts.
$html
Definition: example_001.php:87
+ 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: