ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilSystemSupportContactsGUI Class Reference

System support contacts. 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

System support contacts.

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

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

Constructor & Destructor Documentation

◆ __construct()

ilSystemSupportContactsGUI::__construct ( )

Constructor.

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

45 {
46 global $DIC;
47
48 $ilCtrl = $DIC->ctrl();
49 $tpl = $DIC["tpl"];
50 $lng = $DIC->language();
51
52 $this->ctrl = $ilCtrl;
53 $this->tpl = $tpl;
54 $this->lng = $lng;
55 $this->ui = $DIC->ui();
56 }
global $DIC
Definition: shib_login.php:26

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

+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilSystemSupportContactsGUI::executeCommand ( )

Execute command.

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

63 {
64 $cmd = $this->ctrl->getCmd("showContacts");
65 if (in_array($cmd, array("showContacts"))) {
66 $this->$cmd();
67 }
68 }

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

105 {
106 global $DIC;
107
108 $ilCtrl = $DIC->ctrl();
109 $ilUser = $DIC->user();
110
112 if (count($users) > 0) {
113 // #17847 - we cannot use a proper GUI on the login screen
114 if (!$ilUser->getId() || $ilUser->getId() == ANONYMOUS_USER_ID) {
117 );
118 } else {
119 return $ilCtrl->getLinkTargetByClass("ilsystemsupportcontactsgui", "", "", false, false);
120 }
121 }
122
123 return "";
124 }
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

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

Referenced by ilFooterStandardGroupsProvider\getEntries().

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

132 {
133 global $DIC;
134
135 $lng = $DIC->language();
136 return $lng->txt("contact_sysadmin");
137 }

References $DIC, and $lng.

Referenced by ilFooterStandardGroupsProvider\getEntries().

+ Here is the caller graph for this function:

◆ showContacts()

ilSystemSupportContactsGUI::showContacts ( )

Show contacts.

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

74 {
75 $this->lng->loadLanguageModule("adm");
76 $this->tpl->loadStandardTemplate();
77 $this->tpl->setTitle($this->lng->txt("adm_support_contacts"));
78
79 $html = "";
81 $pgui = new PublicProfileGUI($c);
82 //$pgui->setBackUrl($this->ctrl->getLinkTargetByClass("ilinfoscreengui"));
83 $pgui->setEmbedded(true);
84 $html .= $pgui->getHTML();
85 }
86
87 $f = $this->ui->factory();
88 $r = $this->ui->renderer();
89 $p = $f->panel()->standard(
90 $this->lng->txt("adm_support_contacts"),
91 $f->legacy()->content($html)
92 );
93
94 $this->tpl->setContent($r->render($p));
95 $this->tpl->printToStdout();
96 }
GUI class for public user profile presentation.
$c
Definition: deliver.php:25

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

+ Here is the call graph for this function:

Field Documentation

◆ $ctrl

ilSystemSupportContactsGUI::$ctrl
protected

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

◆ $lng

ilSystemSupportContactsGUI::$lng
protected

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

Referenced by __construct(), and getFooterText().

◆ $tpl

ilSystemSupportContactsGUI::$tpl
protected

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

Referenced by __construct().

◆ $ui

ILIAS DI UIServices ilSystemSupportContactsGUI::$ui
protected

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


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