ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilAwarenessUserProviderAllUsers.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 "user_all";
24 }
25
31 function getTitle()
32 {
33 $this->lng->loadLanguageModule("user");
34 return $this->lng->txt("user_awrn_all_users");
35 }
36
42 function getInfo()
43 {
44 $this->lng->loadLanguageModule("user");
45 return $this->lng->txt("user_awrn_all_users_info");
46 }
47
54 {
55 global $ilDB;
56
57 $ub = array();
58 // all online users
59 if ($this->getOnlineUserFilter() !== false)
60 {
61 foreach ($this->getOnlineUserFilter() as $u)
62 {
63 $ub[] = $u;
64 }
65 }
66 else // all users
67 {
68 $set = $ilDB->query("SELECT usr_id FROM usr_data ");
69 while ($rec = $ilDB->fetchAssoc($set))
70 {
71 $ub[] = $rec["usr_id"];
72 }
73 }
74 return $ub;
75 }
76
77}
78?>
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.
getOnlineUserFilter()
Get online user filter.
global $ilDB