ILIAS  trunk Revision v11.0_alpha-2406-g7062992332c
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ceLTIc\LTI\User\Collection Class Reference

Represents a set of collected users. More...

+ Inheritance diagram for ceLTIc\LTI\User\Collection:
+ Collaboration diagram for ceLTIc\LTI\User\Collection:

Public Member Functions

 addUser (int $a_id)
 
 removeUser (int $a_id)
 
 getUsers ()
 
 count ()
 

Protected Attributes

array $users = array()
 

Detailed Description

Represents a set of collected users.

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

Definition at line 25 of file class.Collection.php.

Member Function Documentation

◆ addUser()

ceLTIc\LTI\User\Collection::addUser ( int  $a_id)
Parameters
int$a_iduser id

Definition at line 33 of file class.Collection.php.

Referenced by ceLTIc\LTI\User\Collector\collectUsers(), and ceLTIc\LTI\User\Collector\collectUsersFromProvider().

33  : void
34  {
35  $this->users[$a_id] = $a_id;
36  }
+ Here is the caller graph for this function:

◆ count()

ceLTIc\LTI\User\Collection::count ( )

Definition at line 56 of file class.Collection.php.

56  : int
57  {
58  return count($this->users);
59  }

◆ getUsers()

ceLTIc\LTI\User\Collection::getUsers ( )
Returns
int[] array of user ids

Definition at line 51 of file class.Collection.php.

References ceLTIc\LTI\User\Collection\$users.

51  : array
52  {
53  return $this->users;
54  }

◆ removeUser()

ceLTIc\LTI\User\Collection::removeUser ( int  $a_id)
Parameters
int$a_iduser id

Definition at line 41 of file class.Collection.php.

41  : void
42  {
43  if (isset($this->users[$a_id])) {
44  unset($this->users[$a_id]);
45  }
46  }

Field Documentation

◆ $users

array ceLTIc::LTI\User\Collection::$users = array()
protected

Definition at line 28 of file class.Collection.php.

Referenced by ceLTIc\LTI\User\Collection\getUsers().


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