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

 $tpl
 
 $lng
 
 $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 29 of file class.ilSystemSupportContactsGUI.php.

References $DIC, $lng, and $tpl.

30  {
31  global $DIC;
32 
33  $ilCtrl = $DIC->ctrl();
34  $tpl = $DIC["tpl"];
35  $lng = $DIC->language();
36 
37  $this->ctrl = $ilCtrl;
38  $this->tpl = $tpl;
39  $this->lng = $lng;
40  }
global $DIC
Definition: goto.php:24

Member Function Documentation

◆ executeCommand()

ilSystemSupportContactsGUI::executeCommand ( )

Execute command.

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

47  {
48  $cmd = $this->ctrl->getCmd("showContacts");
49  if (in_array($cmd, array("showContacts"))) {
50  $this->$cmd();
51  }
52  }

◆ getFooterLink()

static ilSystemSupportContactsGUI::getFooterLink ( )
static

Get footer link.

Returns
string footer link

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

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

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

89  {
90  global $DIC;
91 
92  $ilCtrl = $DIC->ctrl();
93  $ilUser = $DIC->user();
94 
95  include_once("./Modules/SystemFolder/classes/class.ilSystemSupportContacts.php");
96 
98  if (count($users) > 0) {
99  // #17847 - we cannot use a proper GUI on the login screen
100  if (!$ilUser->getId() || $ilUser->getId() == ANONYMOUS_USER_ID) {
102  } else {
103  return $ilCtrl->getLinkTargetByClass("ilsystemsupportcontactsgui", "", "", false, false);
104  }
105  }
106 
107 
108  /*$m = ilUtil::prepareFormOutput(ilSystemSupportContacts::getMailsToAddress());
109  if ($m != "")
110  {
111  return "mailto:".$m;
112  }*/
113  return "";
114  }
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
const ANONYMOUS_USER_ID
Definition: constants.php:25
static getMailsToAddress()
Get mailto: emails.
global $DIC
Definition: goto.php:24
$ilUser
Definition: imgupload.php:18
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 121 of file class.ilSystemSupportContactsGUI.php.

References $DIC, and $lng.

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

122  {
123  global $DIC;
124 
125  $lng = $DIC->language();
126  return $lng->txt("contact_sysadmin");
127  }
global $DIC
Definition: goto.php:24
+ Here is the caller graph for this function:

◆ showContacts()

ilSystemSupportContactsGUI::showContacts ( )

Show contacts.

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

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

58  {
59  $this->lng->loadLanguageModule("adm");
60  $this->tpl->loadStandardTemplate();
61  $this->tpl->setTitle($this->lng->txt("adm_support_contacts"));
62  include_once("./Services/UIComponent/Panel/classes/class.ilPanelGUI.php");
65 
66  $html = "";
67  include_once("./Modules/SystemFolder/classes/class.ilSystemSupportContacts.php");
69  include_once("./Services/User/classes/class.ilPublicUserProfileGUI.php");
70  $pgui = new ilPublicUserProfileGUI($c);
71  //$pgui->setBackUrl($this->ctrl->getLinkTargetByClass("ilinfoscreengui"));
72  $pgui->setEmbedded(true);
73  $html .= $pgui->getHTML();
74  }
75 
76  $panel->setBody($html);
77 
78  $this->tpl->setContent($panel->getHTML());
79  $this->tpl->printToStdout();
80  }
$c
Definition: cli.php:37
if(isset($_FILES['img_file']) &&is_array($_FILES['img_file'])) $panel
Definition: imgupload.php:138
const PANEL_STYLE_PRIMARY
GUI class for public user profile presentation.
static getInstance()
Get instance.
static getValidSupportContactIds()
Get valid support contacts.
+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilSystemSupportContactsGUI::$ctrl
protected

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

◆ $lng

ilSystemSupportContactsGUI::$lng
protected

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

Referenced by __construct(), and getFooterText().

◆ $tpl

ilSystemSupportContactsGUI::$tpl
protected

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

Referenced by __construct().


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