ILIAS  release_8 Revision v8.24
class.ilSystemSupportContactsGUI.php
Go to the documentation of this file.
1<?php
2
25{
29 protected $tpl;
30
34 protected $lng;
35
36 protected $ctrl;
37
41 public function __construct()
42 {
43 global $DIC;
44
45 $ilCtrl = $DIC->ctrl();
46 $tpl = $DIC["tpl"];
47 $lng = $DIC->language();
48
49 $this->ctrl = $ilCtrl;
50 $this->tpl = $tpl;
51 $this->lng = $lng;
52 }
53
54
58 public function executeCommand()
59 {
60 $cmd = $this->ctrl->getCmd("showContacts");
61 if (in_array($cmd, array("showContacts"))) {
62 $this->$cmd();
63 }
64 }
65
69 public function showContacts()
70 {
71 $this->lng->loadLanguageModule("adm");
72 $this->tpl->loadStandardTemplate();
73 $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 $panel->setBody($html);
86
87 $this->tpl->setContent($panel->getHTML());
88 $this->tpl->printToStdout();
89 }
90
91
97 public static function getFooterLink()
98 {
99 global $DIC;
100
101 $ilCtrl = $DIC->ctrl();
102 $ilUser = $DIC->user();
103
105 if (count($users) > 0) {
106 // #17847 - we cannot use a proper GUI on the login screen
107 if (!$ilUser->getId() || $ilUser->getId() == ANONYMOUS_USER_ID) {
110 );
111 } else {
112 return $ilCtrl->getLinkTargetByClass("ilsystemsupportcontactsgui", "", "", false, false);
113 }
114 }
115
116 return "";
117 }
118
124 public static function getFooterText()
125 {
126 global $DIC;
127
128 $lng = $DIC->language();
129 return $lng->txt("contact_sysadmin");
130 }
131}
static prepareFormOutput($a_str, bool $a_strip=false)
static getInstance()
const PANEL_STYLE_PRIMARY
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getMailsToAddress()
Get mailto: emails.
static getValidSupportContactIds()
Get valid support contacts.
$c
Definition: cli.php:38
const ANONYMOUS_USER_ID
Definition: constants.php:27
global $DIC
Definition: feed.php:28
if(isset($_FILES['img_file']) &&is_array($_FILES['img_file'])) $panel
Definition: imgupload.php:198
$ilUser
Definition: imgupload.php:34
Interface ilCtrlBaseClassInterface describes ilCtrl base classes.