ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilUsersGalleryParticipants Class Reference

Class ilUsersGalleryParticipants. More...

+ Inheritance diagram for ilUsersGalleryParticipants:
+ Collaboration diagram for ilUsersGalleryParticipants:

Public Member Functions

 __construct (protected ilParticipants $participants)
 
- Public Member Functions inherited from ilAbstractUsersGalleryCollectionProvider
 hasRemovableUsers ()
 
- Public Member Functions inherited from ilUsersGalleryCollectionProvider
 getGroupedCollections ()
 

Protected Member Functions

 getUsers (array $usr_ids)
 
- Protected Member Functions inherited from ilAbstractUsersGalleryCollectionProvider
 getPopulatedGroup (array $users)
 

Protected Attributes

array $users = []
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilUsersGalleryParticipants::__construct ( protected ilParticipants  $participants)

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

30  {
31  }

Member Function Documentation

◆ getUsers()

ilUsersGalleryParticipants::getUsers ( array  $usr_ids)
protected
Parameters
int[]$usr_ids
Returns
array<int, ilObjUser>

Definition at line 37 of file class.ilUsersGalleryParticipants.php.

References $DIC, $users, ilUsersGalleryCollectionProvider\getGroupedCollections(), ilObjectFactory\getInstanceByObjId(), and ilAbstractUsersGalleryCollectionProvider\getPopulatedGroup().

37  : array
38  {
39  $users = [];
40 
41  foreach ($usr_ids as $usr_id) {
42  if (isset($this->users[$usr_id])) {
43  continue;
44  }
45 
46  if (!($user = ilObjectFactory::getInstanceByObjId($usr_id, false)) || !($user instanceof ilObjUser)) {
47  continue;
48  }
49 
50  if (!$user->getActive()) {
51  continue;
52  }
53 
54  $users[$user->getId()] = $user;
55  $this->users[$user->getId()] = true;
56  }
57 
58  return $users;
59  }
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
+ Here is the call graph for this function:

Field Documentation

◆ $users

array ilUsersGalleryParticipants::$users = []
protected

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

Referenced by getUsers().


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