ILIAS  trunk Revision v11.0_alpha-1851-ga8564da6fed
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilAbstractUsersGalleryUserCollectionSorter Class Reference
+ Inheritance diagram for ilAbstractUsersGalleryUserCollectionSorter:
+ Collaboration diagram for ilAbstractUsersGalleryUserCollectionSorter:

Public Member Functions

 sort (array $users)
 

Protected Member Functions

 compare (ilUsersGalleryUser $left, ilUsersGalleryUser $right)
 

Detailed Description

Member Function Documentation

◆ compare()

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

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.

References compare().

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)
+ Here is the call graph for this function:

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