ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilSystemSupportContactsGUI.php
Go to the documentation of this file.
1<?php
2
20
27{
28 protected \ILIAS\DI\UIServices $ui;
32 protected $tpl;
33
37 protected $lng;
38
39 protected $ctrl;
40
44 public function __construct()
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 }
57
58
62 public function executeCommand()
63 {
64 $cmd = $this->ctrl->getCmd("showContacts");
65 if (in_array($cmd, array("showContacts"))) {
66 $this->$cmd();
67 }
68 }
69
73 public function showContacts()
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 }
97
98
104 public static function getFooterLink()
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 }
125
131 public static function getFooterText()
132 {
133 global $DIC;
134
135 $lng = $DIC->language();
136 return $lng->txt("contact_sysadmin");
137 }
138}
GUI class for public user profile presentation.
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
$c
Definition: deliver.php:25
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:26