ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilAwarenessUserProviderCourseContacts.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2014 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once("./Services/Awareness/classes/class.ilAwarenessUserProvider.php");
6
15{
21 function getProviderId()
22 {
23 return "crs_contacts";
24 }
25
31 function getTitle()
32 {
33 $this->lng->loadLanguageModule("crs");
34 return $this->lng->txt("crs_awrn_support_contacts");
35 }
36
42 function getInfo()
43 {
44 $this->lng->loadLanguageModule("crs");
45 return $this->lng->txt("crs_awrn_support_contacts_info");
46 }
47
54 {
55 include_once("./Services/Membership/classes/class.ilParticipants.php");
56 $ub = array();
57 $support_contacts = ilParticipants::_getAllSupportContactsOfUser($this->getUserId(), "crs");
58 foreach ($support_contacts as $c)
59 {
60 $ub[] = $c["usr_id"];
61 }
62 return $ub;
63 }
64}
65?>
getTitle()
Provider title (used in awareness overlay and in administration settings)
getInfo()
Provider info (used in administration settings)
A class that provides a collection of users for the awareness tool.
static _getAllSupportContactsOfUser($a_usr_id, $a_type)
Get all support contacts for a user.