ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ceLTIc\LTI\User\ProviderAllUsers Class Reference

Test provider, adds all users. More...

+ Inheritance diagram for ceLTIc\LTI\User\ProviderAllUsers:
+ Collaboration diagram for ceLTIc\LTI\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...
 

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()

ceLTIc\LTI\User\ProviderAllUsers::__construct ( Container  $DIC)

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

References ILIAS\Repository\lng().

33  {
34  $this->db = $DIC->database();
35  $this->lng = $DIC->language();
36  }
global $DIC
Definition: shib_login.php:26
+ Here is the call graph for this function:

Member Function Documentation

◆ getInfo()

ceLTIc\LTI\User\ProviderAllUsers::getInfo ( )

Provider info (used in administration settings)

Returns
string provider info text

Implements ceLTIc\LTI\User\Provider.

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

References ILIAS\Repository\lng().

57  : string
58  {
59  $this->lng->loadLanguageModule("user");
60  return $this->lng->txt("user_awrn_all_users_info");
61  }
+ Here is the call graph for this function:

◆ getInitialUserSet()

ceLTIc\LTI\User\ProviderAllUsers::getInitialUserSet ( ?array  $user_ids = null)

Get initial set of users.

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

Implements ceLTIc\LTI\User\Provider.

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

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

68  : array
69  {
70  $ilDB = $this->db;
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  }
+ Here is the call graph for this function:

◆ getProviderId()

ceLTIc\LTI\User\ProviderAllUsers::getProviderId ( )

Implements ceLTIc\LTI\User\Provider.

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

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

◆ getTitle()

ceLTIc\LTI\User\ProviderAllUsers::getTitle ( )

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

Returns
string provider title

Implements ceLTIc\LTI\User\Provider.

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

References ILIAS\Repository\lng().

47  : string
48  {
49  $this->lng->loadLanguageModule("user");
50  return $this->lng->txt("user_awrn_all_users");
51  }
+ Here is the call graph for this function:

◆ isHighlighted()

ceLTIc\LTI\User\ProviderAllUsers::isHighlighted ( )

Is highlighted.

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

Implements ceLTIc\LTI\User\Provider.

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

85  : bool
86  {
87  return false;
88  }

Field Documentation

◆ $db

ilDBInterface ceLTIc::LTI\User\ProviderAllUsers::$db
protected

◆ $lng

ilLanguage ceLTIc::LTI\User\ProviderAllUsers::$lng
protected

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


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