ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
class.ilAbstractUsersGalleryUserCollectionSorter.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.ilUsersGalleryUserCollectionSorter.php'
;
5
9
abstract
class
ilAbstractUsersGalleryUserCollectionSorter
implements
ilUsersGalleryUserCollectionSorter
10
{
16
abstract
protected
function
compare
(
ilUsersGalleryUser
$left,
ilUsersGalleryUser
$right);
17
21
final
public
function
sort
(
array
$users
)
22
{
23
$that = $this;
24
uasort($users,
function
(
ilUsersGalleryUser
$left,
ilUsersGalleryUser
$right) use ($that) {
25
return
$that->compare($left, $right);
26
});
27
28
return
$users
;
29
}
30
}
ilAbstractUsersGalleryUserCollectionSorter\sort
sort(array $users)
$users ilUsersGalleryUser[]
Definition:
class.ilAbstractUsersGalleryUserCollectionSorter.php:21
ilUsersGalleryUser
Interface ilUsersGalleryUser.
Definition:
interface.ilUsersGalleryUser.php:7
ilAbstractUsersGalleryUserCollectionSorter
Class ilAbstractUsersGalleryUserCollectionSorter.
Definition:
class.ilAbstractUsersGalleryUserCollectionSorter.php:9
ilAbstractUsersGalleryUserCollectionSorter\compare
compare(ilUsersGalleryUser $left, ilUsersGalleryUser $right)
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
$users
$users
Definition:
authpage.php:44
ilUsersGalleryUserCollectionSorter
Interface ilUsersGalleryUserCollectionSorter.
Definition:
interface.ilUsersGalleryUserCollectionSorter.php:7
Services
User
Gallery
classes
class.ilAbstractUsersGalleryUserCollectionSorter.php
Generated on Tue Jan 28 2025 19:01:43 for ILIAS by
1.8.13 (using
Doxyfile
)