ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilAccessibilitySupportContacts 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 ilAccessibilitySupportContacts:

Static Public Member Functions

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

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 Class ilAccessibilitySupportContacts

Author
Thomas Famula famul.nosp@m.a@le.nosp@m.ifos..nosp@m.de

Definition at line 24 of file class.ilAccessibilitySupportContacts.php.

Member Function Documentation

◆ getList()

static ilAccessibilitySupportContacts::getList ( )
static

Get list.

Returns
string comma separated list of contacts

Definition at line 31 of file class.ilAccessibilitySupportContacts.php.

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

References $DIC, and $ilSetting.

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

+ Here is the caller graph for this function:

◆ getMailsToAddress()

static ilAccessibilitySupportContacts::getMailsToAddress ( )
static

Definition at line 78 of file class.ilAccessibilitySupportContacts.php.

79 {
80 $emails = array();
81 foreach (self::getValidSupportContactIds() as $id) {
82 if (($e = ilObjUser::_lookupEmail($id)) != "") {
83 $emails[] = $e;
84 }
85 }
86 if (!empty($emails)) {
87 $emails = implode(',', $emails);
88 if (trim($emails)) {
89 return $emails;
90 }
91 }
92 return "";
93 }
$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 ilAccessibilitySupportContactsGUI\getFooterLink(), and ilAccessibilityControlConceptGUI\showControlConcept().

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

◆ getValidSupportContactIds()

static ilAccessibilitySupportContacts::getValidSupportContactIds ( )
static

Get valid support contacts.

Returns
array array of user IDs

Definition at line 67 of file class.ilAccessibilitySupportContacts.php.

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

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

Referenced by ilAccessibilitySupportContactsGUI\getContactLogins(), and ilAccessibilitySupportContactsGUI\getFooterLink().

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

◆ setList()

static ilAccessibilitySupportContacts::setList ( string  $a_list)
static

Set list.

Parameters
string$a_listcomma separated list of contacts

Definition at line 45 of file class.ilAccessibilitySupportContacts.php.

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

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

Referenced by ilObjAccessibilitySettingsGUI\saveAccessibilitySettings(), and 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: