ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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 getMailsToAddress ()
 Get mailto: emails. 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 $ilSetting
Definition: privfeed.php:17
$DIC
Definition: xapitoken.php:46
+ Here is the caller graph for this function:

◆ getMailsToAddress()

static ilSystemSupportContacts::getMailsToAddress ( )
static

Get mailto: emails.

Parameters

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

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

Referenced by ilSystemSupportContactsGUI\getFooterLink(), ilAccountRegistrationGUI\saveForm(), ilStartUpGUI\showTermsOfService(), and ilPersonalProfileGUI\showUserAgreement().

70  {
71  $emails = array();
72  foreach (self::getValidSupportContactIds() as $id) {
73  if (($e = ilObjUser::_lookupEmail($id)) != "") {
74  $emails[] = $e;
75  }
76  }
77  if (!empty($emails)) {
78  $emails = implode(',', $emails);
79  if (trim($emails)) {
80  return $emails;
81  }
82  }
83  return "";
84  }
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 ilObjUser\_lookupId().

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

56  {
57  $list = self::getList();
58  $list = explode(",", $list);
59 
60  return ilObjUser::_lookupId($list);
61  }
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, and ilObjUser\_lookupId().

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  }
static _lookupId($a_user_str)
Lookup id by login.
global $ilSetting
Definition: privfeed.php:17
$DIC
Definition: xapitoken.php:46
+ 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: