ILIAS  trunk Revision v11.0_alpha-1846-g895b5f47236
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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

ILIAS DI UIServices $ui
 
 $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 42 of file class.ilSystemSupportContactsGUI.php.

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

43  {
44  global $DIC;
45 
46  $ilCtrl = $DIC->ctrl();
47  $tpl = $DIC["tpl"];
48  $lng = $DIC->language();
49 
50  $this->ctrl = $ilCtrl;
51  $this->tpl = $tpl;
52  $this->lng = $lng;
53  $this->ui = $DIC->ui();
54  }
global $DIC
Definition: shib_login.php:22
+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilSystemSupportContactsGUI::executeCommand ( )

Execute command.

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

References ILIAS\Repository\ctrl().

61  {
62  $cmd = $this->ctrl->getCmd("showContacts");
63  if (in_array($cmd, array("showContacts"))) {
64  $this->$cmd();
65  }
66  }
+ Here is the call graph for this function:

◆ getFooterLink()

static ilSystemSupportContactsGUI::getFooterLink ( )
static

Get footer link.

Returns
string footer link

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

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

Referenced by ilFooterStandardGroupsProvider\getEntries().

103  {
104  global $DIC;
105 
106  $ilCtrl = $DIC->ctrl();
107  $ilUser = $DIC->user();
108 
110  if (count($users) > 0) {
111  // #17847 - we cannot use a proper GUI on the login screen
112  if (!$ilUser->getId() || $ilUser->getId() == ANONYMOUS_USER_ID) {
115  );
116  } else {
117  return $ilCtrl->getLinkTargetByClass("ilsystemsupportcontactsgui", "", "", false, false);
118  }
119  }
120 
121  return "";
122  }
const ANONYMOUS_USER_ID
Definition: constants.php:27
static prepareFormOutput($a_str, bool $a_strip=false)
static getMailsToAddress()
Get mailto: emails.
global $DIC
Definition: shib_login.php:22
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 129 of file class.ilSystemSupportContactsGUI.php.

References $DIC, and $lng.

Referenced by ilFooterStandardGroupsProvider\getEntries().

130  {
131  global $DIC;
132 
133  $lng = $DIC->language();
134  return $lng->txt("contact_sysadmin");
135  }
global $DIC
Definition: shib_login.php:22
+ Here is the caller graph for this function:

◆ showContacts()

ilSystemSupportContactsGUI::showContacts ( )

Show contacts.

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

References $c, Vendor\Package\$f, $r, ilSystemSupportContacts\getValidSupportContactIds(), ILIAS\Repository\lng(), and ILIAS\Repository\ui().

72  {
73  $this->lng->loadLanguageModule("adm");
74  $this->tpl->loadStandardTemplate();
75  $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  $f = $this->ui->factory();
86  $r = $this->ui->renderer();
87  $p = $f->panel()->standard(
88  $this->lng->txt("adm_support_contacts"),
89  $f->legacy()->content($html)
90  );
91 
92  $this->tpl->setContent($r->render($p));
93  $this->tpl->printToStdout();
94  }
$c
Definition: deliver.php:25
GUI class for public user profile presentation.
static getValidSupportContactIds()
Get valid support contacts.
$r
+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilSystemSupportContactsGUI::$ctrl
protected

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

◆ $lng

ilSystemSupportContactsGUI::$lng
protected

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

Referenced by __construct(), and getFooterText().

◆ $tpl

ilSystemSupportContactsGUI::$tpl
protected

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

Referenced by __construct().

◆ $ui

ILIAS DI UIServices ilSystemSupportContactsGUI::$ui
protected

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


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