ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
4require_once 'Services/User/Gallery/interfaces/interface.ilUsersGalleryCollectionProvider.php';
5require_once 'Services/User/classes/class.ilUserUtil.php';
6require_once 'Services/User/Gallery/classes/class.ilUsersGalleryGroup.php';
7require_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}
$users
Definition: authpage.php:44
An exception for terminatinating execution or to throw for unit testing.
getId()
get object id @access public
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:
Class ilUsersGalleryGroup.
Class ilUsersGalleryUserImpl.
Interface ilUsersGalleryCollectionProvider.