ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilOrgUnitUserQueries.php
Go to the documentation of this file.
1 <?php
9 {
10 
14  protected $dic;
15 
19  public function __construct()
20  {
21  global $DIC;
22  $this->dic = $DIC;
23  }
24 
25 
29  public function findAllUsersByUserIds($user_ids)
30  {
31  $users = array();
32  foreach ($user_ids as $user_id) {
33  $q = "SELECT * FROM usr_data WHERE usr_id = " . $this->dic->database()->quote($user_id, "integer");
34  $usr_set = $this->dic->database()->query($q);
35  $users[] = $this->dic->database()->fetchAssoc($usr_set);
36  }
37  return $users;
38  }
39 
40 
44  public function getAllUserNames($users)
45  {
46  $user_names = array();
47  foreach ($users as $user) {
48  $user_names[] = $user['login'];
49  }
50  return $user_names;
51  }
52 }
Class ilOrgUnitUserQueriesInterface.
global $DIC
Definition: saml.php:7
__construct()
ilOrgUnitUserQueries constructor.
Create styles array
The data for the language used.
$users
Definition: authpage.php:44
getAllUserNames($users)
array $user_names
Class ilOrgUnitUserQueries.
findAllUsersByUserIds($user_ids)
array $users