ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilUsersGalleryParticipants Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

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

Public Member Functions

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

ilParticipants $participants
 
array $users = []
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilUsersGalleryParticipants

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

Constructor & Destructor Documentation

◆ __construct()

ilUsersGalleryParticipants::__construct ( ilParticipants  $participants)

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

References $participants.

31  {
32  $this->participants = $participants;
33  }

Member Function Documentation

◆ getUsers()

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

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

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

39  : array
40  {
41  $users = [];
42 
43  foreach ($usr_ids as $usr_id) {
44  if (isset($this->users[$usr_id])) {
45  continue;
46  }
47 
48  if (!($user = ilObjectFactory::getInstanceByObjId($usr_id, false)) || !($user instanceof ilObjUser)) {
49  continue;
50  }
51 
52  if (!$user->getActive()) {
53  continue;
54  }
55 
56  $users[$user->getId()] = $user;
57  $this->users[$user->getId()] = true;
58  }
59 
60  return $users;
61  }
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

◆ $participants

ilParticipants ilUsersGalleryParticipants::$participants
protected

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

Referenced by __construct().

◆ $users

array ilUsersGalleryParticipants::$users = []
protected

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

Referenced by getUsers().


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