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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilSystemSupportContacts:

Static Public Member Functions

static getList ()
 Get list. More...
 
static setList ($a_list)
 Set list. More...
 
static getValidSupportContactIds ()
 Get valid support contacts. More...
 
static getMailsToAddress ()
 Get mailto: emails. More...
 

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
Version
$Id$ \

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

Member Function Documentation

◆ getList()

static ilSystemSupportContacts::getList ( )
static

Get list.

Returns
string comma separated list of contacts

Definition at line 33 of file class.ilSystemSupportContacts.php.

33 : string
34 {
35 global $DIC;
36
37 $ilSetting = $DIC->settings();
38
39 return $ilSetting->get("adm_support_contacts") ?? '';
40 }
global $ilSetting
Definition: privfeed.php:31
global $DIC
Definition: shib_login.php:26

References $DIC, and $ilSetting.

Referenced by getValidSupportContactIds(), and ilObjSystemFolderGUI\initContactInformationForm().

+ Here is the caller graph for this function:

◆ getMailsToAddress()

static ilSystemSupportContacts::getMailsToAddress ( )
static

Get mailto: emails.

Parameters

return

Definition at line 83 of file class.ilSystemSupportContacts.php.

84 {
85 $emails = array();
86 foreach (self::getValidSupportContactIds() as $id) {
87 if (($e = ilObjUser::_lookupEmail($id)) != "") {
88 $emails[] = $e;
89 }
90 }
91 if (!empty($emails)) {
92 $emails = implode(',', $emails);
93 if (trim($emails)) {
94 return $emails;
95 }
96 }
97 return "";
98 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
static _lookupEmail(int $a_user_id)

References Vendor\Package\$e, $id, and ilObjUser\_lookupEmail().

Referenced by ILIAS\LegalDocuments\ConsumerToolbox\Blocks\__construct(), ilSystemSupportContactsGUI\getFooterLink(), ILIAS\LegalDocuments\ConsumerToolbox\ConsumerSlots\SelfRegistration\saveLegacyForm(), and ILIAS\LegalDocuments\ConsumerToolbox\ConsumerSlots\Agreement\showDocument().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getValidSupportContactIds()

static ilSystemSupportContacts::getValidSupportContactIds ( )
static

Get valid support contacts.

Returns
array array of user IDs

Definition at line 69 of file class.ilSystemSupportContacts.php.

69 : array
70 {
71 $list = self::getList();
72 $list = explode(",", $list);
73
74 return ilObjUser::_lookupId($list);
75 }
static _lookupId(string|array $a_user_str)

References ilObjUser\_lookupId(), and getList().

Referenced by ilSystemSupportContactsGUI\getFooterLink(), and ilSystemSupportContactsGUI\showContacts().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setList()

static ilSystemSupportContacts::setList (   $a_list)
static

Set list.

Parameters
string$a_listcomma separated list of contacts

Definition at line 47 of file class.ilSystemSupportContacts.php.

48 {
49 global $DIC;
50
51 $ilSetting = $DIC->settings();
52
53 $list = explode(",", $a_list);
54 $accounts = array();
55 foreach ($list as $l) {
56 if (ilObjUser::_lookupId(trim($l)) > 0) {
57 $accounts[] = trim($l);
58 }
59 }
60
61 return $ilSetting->set("adm_support_contacts", implode(",", $accounts));
62 }

References $DIC, $ilSetting, and ilObjUser\_lookupId().

Referenced by ilObjSystemFolderGUI\saveContactInformationObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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