ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilAbstractUsersGalleryCollectionProvider.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once 'Services/User/Gallery/interfaces/interface.ilUsersGalleryCollectionProvider.php';
5 require_once 'Services/User/classes/class.ilUserUtil.php';
6 require_once 'Services/User/Gallery/classes/class.ilUsersGalleryGroup.php';
7 require_once 'Services/User/Gallery/classes/class.ilUsersGalleryUserImpl.php';
8 
13 {
18  protected function getPopulatedGroup(array $users)
19  {
20  $sortable_names = ilUserUtil::getNamePresentation(array_keys($users));
22  array_keys($users),
23  false,
24  false,
25  '',
26  false,
27  true,
28  false,
29  false
30  );
31 
32  return new ilUsersGalleryGroup(array_map(function (ilObjUser $user) use ($names, $sortable_names) {
33  return new ilUsersGalleryUserImpl($user, $names[$user->getId()], $sortable_names[$user->getId()]);
34  }, $users));
35  }
36 
40  public function hasRemovableUsers()
41  {
42  return false;
43  }
44 }
Class ilUsersGalleryUserImpl.
getId()
get object id public
Interface ilUsersGalleryCollectionProvider.
static getNamePresentation( $a_user_id, $a_user_image=false, $a_profile_link=false, $a_profile_back_link="", $a_force_first_lastname=false, $a_omit_login=false, $a_sortable=true, $a_return_data_array=false, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
$user
Definition: migrateto20.php:57
$users
Definition: authpage.php:44
Class ilUsersGalleryGroup.