ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
5 include_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 
53  function getInitialUserSet()
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 ?>
getInfo()
Provider info (used in administration settings)
A class that provides a collection of users for the awareness tool.
getTitle()
Provider title (used in awareness overlay and in administration settings)
Create styles array
The data for the language used.
global $ilDB
getOnlineUserFilter()
Get online user filter.