ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilAbstractUsersGalleryUserCollectionSorter Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

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

Public Member Functions

 sort (array $users)
 

Protected Member Functions

 compare (ilUsersGalleryUser $left, ilUsersGalleryUser $right)
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

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

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  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
compare(ilUsersGalleryUser $left, ilUsersGalleryUser $right)
+ Here is the call graph for this function:

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