30 protected \ILIAS\DI\UIServices
$ui;
50 $ilCtrl =
$DIC->ctrl();
54 $this->
ctrl = $ilCtrl;
57 $this->
ui = $DIC->ui();
66 $next_class = $this->
ctrl->getNextClass($this);
68 switch ($next_class) {
69 case strtolower(PublicProfileGUI::class):
71 $this->
ctrl->setReturn($this,
'showContacts');
72 $this->
ctrl->forwardCommand($gui);
76 $cmd = $this->
ctrl->getCmd(
"showContacts");
77 if (in_array($cmd, array(
"showContacts"))) {
88 $this->
lng->loadLanguageModule(
"adm");
89 $this->tpl->loadStandardTemplate();
90 $this->tpl->setTitle($this->
lng->txt(
"adm_support_contacts"));
93 if (self::isAnonymous() && !self::globalProfilesEnabled()) {
101 $content[] = $this->
ui->factory()->listing()->unordered(array_unique($mails));
104 if (self::isProfileVisible(
$user_id)) {
106 $pgui->setEmbedded(
true);
107 $content[] = $this->
ui->factory()->legacy()->content($pgui->getHTML());
112 $panel = $this->
ui->factory()->panel()->standard(
113 $this->
lng->txt(
"adm_support_contacts"),
117 $this->tpl->setContent($this->
ui->renderer()->render($panel));
118 $this->tpl->printToStdout();
129 return $DIC->ctrl()->getLinkTargetByClass(self::class);
140 return $DIC->language()->txt(
"contact_sysadmin");
151 $public = $user->getPref(
'public_profile');
153 if (self::isAnonymous()) {
156 return $public ===
'g' || $public ===
'y';
166 $current_user_id =
$DIC->user()->getId();
176 return $DIC->settings()->get(
'enable_global_profiles') ??
false;
The scope of this class is split ilias-conform URI's into components.
GUI class for public user profile presentation.
static _lookupEmail(int $a_user_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...