ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
5 include_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 
53  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  {
60  $ub[] = $c["usr_id"];
61  }
62  return $ub;
63  }
64 }
65 ?>
static _getAllSupportContactsOfUser($a_usr_id, $a_type)
Get all support contacts for a user.
getTitle()
Provider title (used in awareness overlay and in administration settings)
A class that provides a collection of users for the awareness tool.
Create styles array
The data for the language used.
getInfo()
Provider info (used in administration settings)