ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilSystemSupportContacts Class Reference

System support contacts. 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 getMailToAddress ()
 Get mailto: email. More...
 

Detailed Description

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 12 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 19 of file class.ilSystemSupportContacts.php.

References $DIC, and $ilSetting.

Referenced by ilObjSystemFolderGUI\initContactInformationForm().

20  {
21  global $DIC;
22 
23  $ilSetting = $DIC->settings();
24 
25  return $ilSetting->get("adm_support_contacts");
26  }
global $DIC
Definition: saml.php:7
global $ilSetting
Definition: privfeed.php:17
+ Here is the caller graph for this function:

◆ getMailToAddress()

static ilSystemSupportContacts::getMailToAddress ( )
static

Get mailto: email.

Parameters

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

References $id, ilObjUser\_lookupEmail(), and array.

Referenced by ilStartUpGUI\getAcceptance(), and ilPersonalProfileGUI\showUserAgreement().

70  {
71  $emails = array();
72  foreach (self::getValidSupportContactIds() as $id) {
73  if (($e = ilObjUser::_lookupEmail($id)) != "") {
74  return $e;
75  }
76  }
77  return "";
78  }
if(!array_key_exists('StateId', $_REQUEST)) $id
Create styles array
The data for the language used.
static _lookupEmail($a_user_id)
Lookup email.
+ 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 55 of file class.ilSystemSupportContacts.php.

References $list, and ilObjUser\_lookupId().

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

56  {
57  $list = self::getList();
58  $list = explode(",", $list);
59 
61  }
if(isset($_REQUEST['delete'])) $list
Definition: registry.php:41
static _lookupId($a_user_str)
Lookup id by login.
+ 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 33 of file class.ilSystemSupportContacts.php.

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

Referenced by ilObjSystemFolderGUI\saveContactInformationObject().

34  {
35  global $DIC;
36 
37  $ilSetting = $DIC->settings();
38 
39  $list = explode(",", $a_list);
40  $accounts = array();
41  foreach ($list as $l) {
42  if (ilObjUser::_lookupId(trim($l)) > 0) {
43  $accounts[] = trim($l);
44  }
45  }
46 
47  return $ilSetting->set("adm_support_contacts", implode(",", $accounts));
48  }
if(isset($_REQUEST['delete'])) $list
Definition: registry.php:41
global $DIC
Definition: saml.php:7
static _lookupId($a_user_str)
Lookup id by login.
Create styles array
The data for the language used.
global $l
Definition: afr.php:30
global $ilSetting
Definition: privfeed.php:17
+ 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: