ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
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 25 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 32 of file class.ilAccessibilitySupportContacts.php.

References $DIC, and $ilSetting.

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

33  {
34  global $DIC;
35 
36  $ilSetting = $DIC->settings();
37 
38  return $ilSetting->get("accessibility_support_contacts") ?? '';
39  }
global $DIC
Definition: feed.php:28
global $ilSetting
Definition: privfeed.php:18
+ Here is the caller graph for this function:

◆ getMailsToAddress()

static ilAccessibilitySupportContacts::getMailsToAddress ( )
static

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

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

Referenced by ilAccessibilitySupportContactsGUI\getFooterLink(), and ilAccessibilityControlConceptGUI\showControlConcept().

80  {
81  $emails = array();
82  foreach (self::getValidSupportContactIds() as $id) {
83  if (($e = ilObjUser::_lookupEmail($id)) != "") {
84  $emails[] = $e;
85  }
86  }
87  if (!empty($emails)) {
88  $emails = implode(',', $emails);
89  if (trim($emails)) {
90  return $emails;
91  }
92  }
93  return "";
94  }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
static _lookupEmail(int $a_user_id)
+ 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 68 of file class.ilAccessibilitySupportContacts.php.

References ilObjUser\_lookupId().

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

69  {
70  $list = self::getList();
71  $list = explode(",", $list);
72 
73  return ilObjUser::_lookupId($list);
74  }
static _lookupId($a_user_str)
+ 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 46 of file class.ilAccessibilitySupportContacts.php.

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

Referenced by ilObjAccessibilitySettingsGUI\saveAccessibilitySettings(), and ilObjSystemFolderGUI\saveContactInformationObject().

47  {
48  global $DIC;
49 
50  $ilSetting = $DIC->settings();
51 
52  $list = explode(",", $a_list);
53  $accounts = array();
54  foreach ($list as $l) {
55  if (ilObjUser::_lookupId(trim($l)) > 0) {
56  $accounts[] = trim($l);
57  }
58  }
59 
60  return $ilSetting->set("accessibility_support_contacts", implode(",", $accounts));
61  }
static _lookupId($a_user_str)
global $DIC
Definition: feed.php:28
global $ilSetting
Definition: privfeed.php:18
+ 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: