SearchResultSorter¶
-
class
OC\Share\
SearchResultSorter
¶ Source: lib/private/Share/SearchResultSorter.php#32
Properties¶
Methods¶
-
public
OC\Share\SearchResultSorter::
__construct
($search, $key, $log=null, $encoding=UTF-8)¶ Source: Parameters: - $search (string) the search term as was given by the user
- $key (string) the array key containing the value that should be compared
against * $log (
OCP\ILogger
) optional * $encoding (string) optional, encoding to use, defaults to UTF-8
-
public
OC\Share\SearchResultSorter::
sort
($a, $b)¶ - User and Group names matching the search term at the beginning shall appearon top of the share dialog. Following entries in alphabetical order.Callback function for usort. https://www.php.net/usort
Source: lib/private/Share/SearchResultSorter.php#57