ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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.

20 {
21 global $ilSetting;
22
23 return $ilSetting->get("adm_support_contacts");
24 }
global $ilSetting
Definition: privfeed.php:40

References $ilSetting.

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

+ Here is the caller graph for this function:

◆ getMailToAddress()

static ilSystemSupportContacts::getMailToAddress ( )
static

Get mailto: email.

Parameters

return

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

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 }
_lookupEmail($a_user_id)
Lookup email.

References ilObjUser\_lookupEmail().

+ Here is the call 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.

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.

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

Referenced by ilSystemSupportContactsGUI\getFooterLink(), ilAwarenessUserProviderSystemContacts\getInitialUserSet(), 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 31 of file class.ilSystemSupportContacts.php.

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 }
global $l
Definition: afr.php:30

References $ilSetting, $l, 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: