ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilAbstractUsersGalleryUserCollectionSorter Class Reference
+ Inheritance diagram for ilAbstractUsersGalleryUserCollectionSorter:
+ Collaboration diagram for ilAbstractUsersGalleryUserCollectionSorter:

Public Member Functions

 sort (array $users)
 
 sort (array $users)
 

Protected Member Functions

 compare (ilUsersGalleryUser $left, ilUsersGalleryUser $right)
 

Detailed Description

Member Function Documentation

◆ compare()

ilAbstractUsersGalleryUserCollectionSorter::compare ( ilUsersGalleryUser  $left,
ilUsersGalleryUser  $right 
)
abstractprotected

Reimplemented in ilUsersGalleryUserCollectionPublicNameSorter.

Referenced by sort().

+ Here is the caller graph for this function:

◆ sort()

ilAbstractUsersGalleryUserCollectionSorter::sort ( array  $users)
final
Parameters
ilUsersGalleryUser[]$users
Returns
ilUsersGalleryUser[]

Implements ilUsersGalleryUserCollectionSorter.

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

25 : array // Missing array type.
26 {
27 uasort($users, function (ilUsersGalleryUser $left, ilUsersGalleryUser $right): int {
28 return $this->compare($left, $right);
29 });
30
31 return $users;
32 }
compare(ilUsersGalleryUser $left, ilUsersGalleryUser $right)

References compare().

+ Here is the call graph for this function:

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