Nextcloud PHP API (stable18)

ISorter

Interface ISorter

Sorts the list of .e.g users for auto completion

Tags
since
13.0.0

Table of Contents

getId()  : string
sort()  : mixed
executes the sort action

Methods

getId()

public getId() : string
Tags
since
13.0.0
Return values
string

The ID of the sorter, e.g. commenters

sort()

executes the sort action

public sort(array &$sortArray, array $context) : mixed
Parameters
$sortArray : array

the array to be sorted, provided as reference

$context : array

carries key 'itemType' and 'itemId' of the source object (e.g. a file)

Tags
since
13.0.0
Return values
mixed

Search results