ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilSystemSupportContacts.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
4
13{
19 public static function getList()
20 {
21 global $DIC;
22
23 $ilSetting = $DIC->settings();
24
25 return $ilSetting->get("adm_support_contacts");
26 }
27
33 public static function setList($a_list)
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 }
49
55 public static function getValidSupportContactIds()
56 {
58 $list = explode(",", $list);
59
61 }
62
69 public static function getMailToAddress()
70 {
71 $emails = array();
72 foreach (self::getValidSupportContactIds() as $id) {
73 if (($e = ilObjUser::_lookupEmail($id)) != "") {
74 return $e;
75 }
76 }
77 return "";
78 }
79}
global $l
Definition: afr.php:30
An exception for terminatinating execution or to throw for unit testing.
static _lookupEmail($a_user_id)
Lookup email.
static _lookupId($a_user_str)
Lookup id by login.
static getValidSupportContactIds()
Get valid support contacts.
static getMailToAddress()
Get mailto: email.
if(!array_key_exists('StateId', $_REQUEST)) $id
global $ilSetting
Definition: privfeed.php:17
if(isset($_REQUEST['delete'])) $list
Definition: registry.php:41
global $DIC
Definition: saml.php:7