ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 $ilSetting.

Referenced by ilObjSystemFolderGUI\initContactInformationForm().

20  {
21  global $ilSetting;
22 
23  return $ilSetting->get("adm_support_contacts");
24  }
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 67 of file class.ilSystemSupportContacts.php.

References ilObjUser\_lookupEmail(), and array.

Referenced by ilStartUpGUI\getAcceptance().

68  {
69  $emails = array();
70  foreach (self::getValidSupportContactIds() as $id)
71  {
72  if (($e = ilObjUser::_lookupEmail($id)) != "")
73  {
74  return $e;
75  }
76  }
77  return "";
78  }
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 53 of file class.ilSystemSupportContacts.php.

References ilObjUser\_lookupId().

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

54  {
55  $list = self::getList();
56  $list = explode(",", $list);
57 
58  return ilObjUser::_lookupId($list);
59  }
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 31 of file class.ilSystemSupportContacts.php.

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

Referenced by ilObjSystemFolderGUI\saveContactInformationObject().

32  {
33  global $ilSetting;
34 
35  $list = explode(",", $a_list);
36  $accounts = array();
37  foreach ($list as $l)
38  {
39  if (ilObjUser::_lookupId(trim($l)) > 0)
40  {
41  $accounts[] = trim($l);
42  }
43  }
44 
45  return $ilSetting->set("adm_support_contacts", implode(",", $accounts));
46  }
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: