ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Awareness\User\ProviderAllUsers Class Reference

Test provider, adds all users. More...

+ Inheritance diagram for ILIAS\Awareness\User\ProviderAllUsers:
+ Collaboration diagram for ILIAS\Awareness\User\ProviderAllUsers:

Public Member Functions

 __construct (Container $DIC)
 
 getProviderId ()
 
 getTitle ()
 Provider title (used in awareness overlay and in administration settings) More...
 
 getInfo ()
 Provider info (used in administration settings) More...
 
 getInitialUserSet (?array $user_ids=null)
 Get initial set of users. More...
 
 isHighlighted ()
 Is highlighted. More...
 
 getProviderId ()
 
 getTitle ()
 Provider title (used in awareness overlay and in administration settings) More...
 
 getInfo ()
 Provider info (used in administration settings) More...
 
 getInitialUserSet (?array $user_ids=null)
 Get initial set of users. More...
 
 isHighlighted ()
 Is highlighted. More...
 

Protected Attributes

ilLanguage $lng
 
ilDBInterface $db
 

Detailed Description

Test provider, adds all users.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 27 of file class.ProviderAllUsers.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Awareness\User\ProviderAllUsers::__construct ( Container  $DIC)

Definition at line 32 of file class.ProviderAllUsers.php.

33 {
34 $this->db = $DIC->database();
35 $this->lng = $DIC->language();
36 }
global $DIC
Definition: shib_login.php:26

References $DIC, ILIAS\DI\Container\language(), and ILIAS\Repository\lng().

+ Here is the call graph for this function:

Member Function Documentation

◆ getInfo()

ILIAS\Awareness\User\ProviderAllUsers::getInfo ( )

Provider info (used in administration settings)

Returns
string provider info text

Implements ILIAS\Awareness\User\Provider.

Definition at line 57 of file class.ProviderAllUsers.php.

57 : string
58 {
59 $this->lng->loadLanguageModule("user");
60 return $this->lng->txt("user_awrn_all_users_info");
61 }

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ getInitialUserSet()

ILIAS\Awareness\User\ProviderAllUsers::getInitialUserSet ( ?array  $user_ids = null)

Get initial set of users.

Parameters
?int[]$user_ids
Returns
int[] array of user IDs

Implements ILIAS\Awareness\User\Provider.

Definition at line 68 of file class.ProviderAllUsers.php.

68 : array
69 {
71
72 $ub = array();
73 // all online users
74 if (!is_null($user_ids)) {
75 return $user_ids;
76 } else { // all users
77 $set = $ilDB->query("SELECT usr_id FROM usr_data ");
78 while ($rec = $ilDB->fetchAssoc($set)) {
79 $ub[] = (int) $rec["usr_id"];
80 }
81 }
82 return $ub;
83 }

References ILIAS\Awareness\User\ProviderAllUsers\$db, $ilDB, and ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ getProviderId()

ILIAS\Awareness\User\ProviderAllUsers::getProviderId ( )

Implements ILIAS\Awareness\User\Provider.

Definition at line 38 of file class.ProviderAllUsers.php.

38 : string
39 {
40 return "user_all";
41 }

◆ getTitle()

ILIAS\Awareness\User\ProviderAllUsers::getTitle ( )

Provider title (used in awareness overlay and in administration settings)

Returns
string provider title

Implements ILIAS\Awareness\User\Provider.

Definition at line 47 of file class.ProviderAllUsers.php.

47 : string
48 {
49 $this->lng->loadLanguageModule("user");
50 return $this->lng->txt("user_awrn_all_users");
51 }

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ isHighlighted()

ILIAS\Awareness\User\ProviderAllUsers::isHighlighted ( )

Is highlighted.

Returns
bool return true, if user group should be highlighted (using extra highlighted number)

Implements ILIAS\Awareness\User\Provider.

Definition at line 85 of file class.ProviderAllUsers.php.

85 : bool
86 {
87 return false;
88 }

Field Documentation

◆ $db

ilDBInterface ILIAS\Awareness\User\ProviderAllUsers::$db
protected

◆ $lng

ilLanguage ILIAS\Awareness\User\ProviderAllUsers::$lng
protected

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


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