19 declare(strict_types=1);
37 protected function getUsers(array $usr_ids): array
41 foreach ($usr_ids as $usr_id) {
42 if (isset($this->users[$usr_id])) {
50 if (!$user->getActive()) {
54 $users[$user->getId()] = $user;
55 $this->users[$user->getId()] =
true;
69 [$this->participants->getContacts(),
true, $DIC->language()->txt(
'crs_mem_contact')],
70 [$this->participants->getAdmins() ,
false,
''],
71 [$this->participants->getTutors() ,
false,
''],
72 [$this->participants->getMembers() ,
false,
'']
75 $group->setHighlighted($users[1]);
76 $group->setLabel($users[2]);
getPopulatedGroup(array $users)
Class ilUsersGalleryParticipants.
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
Base class for course and group participants.
__construct(protected ilParticipants $participants)