ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilAbstractUsersGalleryCollectionProvider.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
26 protected function getPopulatedGroup(array $users): ilUsersGalleryUserCollection
27 {
28 $sortable_names = ilUserUtil::getNamePresentation(array_keys($users));
30 array_keys($users),
31 false,
32 false,
33 '',
34 false,
35 true,
36 false,
37 false
38 );
39
40 return new ilUsersGalleryGroup(array_map(static function (ilObjUser $user) use ($names, $sortable_names): ilUsersGalleryUser {
41 return new ilUsersGalleryUserImpl($user, $names[$user->getId()], $sortable_names[$user->getId()]);
42 }, $users));
43 }
44
45 public function hasRemovableUsers(): bool
46 {
47 return false;
48 }
49}
User class.
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link='', bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path=null)
Default behaviour is:
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...