ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilOrgUnitUserQueries Class Reference

Class ilOrgUnitUserQueries. More...

+ Inheritance diagram for ilOrgUnitUserQueries:
+ Collaboration diagram for ilOrgUnitUserQueries:

Public Member Functions

 __construct ()
 ilOrgUnitUserQueries constructor. More...
 
 findAllUsersByUserIds ($user_ids)
 
Parameters
array$user_ids
Returns
array $users
More...
 
 getAllUserNames ($users)
 
Parameters
array$users
Returns
array $user_names
More...
 

Protected Attributes

 $dic
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilOrgUnitUserQueries::__construct ( )

ilOrgUnitUserQueries constructor.

Definition at line 19 of file class.ilOrgUnitUserQueries.php.

References $DIC.

20  {
21  global $DIC;
22  $this->dic = $DIC;
23  }
global $DIC
Definition: saml.php:7

Member Function Documentation

◆ findAllUsersByUserIds()

ilOrgUnitUserQueries::findAllUsersByUserIds (   $user_ids)

Parameters
array$user_ids
Returns
array $users

Implements ilOrgUnitUserQueriesInterface.

Definition at line 29 of file class.ilOrgUnitUserQueries.php.

References $users, and array.

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  }
Create styles array
The data for the language used.
$users
Definition: authpage.php:44

◆ getAllUserNames()

ilOrgUnitUserQueries::getAllUserNames (   $users)

Parameters
array$users
Returns
array $user_names

Implements ilOrgUnitUserQueriesInterface.

Definition at line 44 of file class.ilOrgUnitUserQueries.php.

References $users, and array.

45  {
46  $user_names = array();
47  foreach ($users as $user) {
48  $user_names[] = $user['login'];
49  }
50  return $user_names;
51  }
Create styles array
The data for the language used.
$users
Definition: authpage.php:44

Field Documentation

◆ $dic

ILIAS DI Container ilOrgUnitUserQueries::$dic
protected

Definition at line 14 of file class.ilOrgUnitUserQueries.php.


The documentation for this class was generated from the following file: