ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilAbstractUsersGalleryUserCollectionSorter Class Reference

Class ilAbstractUsersGalleryUserCollectionSorter. More...

+ Inheritance diagram for ilAbstractUsersGalleryUserCollectionSorter:
+ Collaboration diagram for ilAbstractUsersGalleryUserCollectionSorter:

Public Member Functions

 sort (array $users)
 
Parameters
ilUsersGalleryUser[]$users
Returns
ilUsersGalleryUser[]
More...
 

Protected Member Functions

 compare (ilUsersGalleryUser $left, ilUsersGalleryUser $right)
 

Detailed Description

Member Function Documentation

◆ compare()

ilAbstractUsersGalleryUserCollectionSorter::compare ( ilUsersGalleryUser  $left,
ilUsersGalleryUser  $right 
)
abstractprotected
Parameters
ilUsersGalleryUser$left
ilUsersGalleryUser$right
Returns
int

◆ sort()

ilAbstractUsersGalleryUserCollectionSorter::sort ( array  $users)
final

Parameters
ilUsersGalleryUser[]$users
Returns
ilUsersGalleryUser[]

Implements ilUsersGalleryUserCollectionSorter.

Definition at line 21 of file class.ilAbstractUsersGalleryUserCollectionSorter.php.

References $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  }
Interface ilUsersGalleryUser.
$users
Definition: authpage.php:44

The documentation for this class was generated from the following file: