ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 public function getProviderId()
22 {
23 return "crs_contacts";
24 }
25
31 public function getTitle()
32 {
33 $this->lng->loadLanguageModule("crs");
34 return $this->lng->txt("crs_awrn_support_contacts");
35 }
36
42 public function getInfo()
43 {
44 $this->lng->loadLanguageModule("crs");
45 return $this->lng->txt("crs_awrn_support_contacts_info");
46 }
47
53 public function getInitialUserSet()
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 $ub[] = $c["usr_id"];
60 }
61 return $ub;
62 }
63}
An exception for terminatinating execution or to throw for unit testing.
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.