Nextcloud PHP API (master)

ISorter

Interface ISorter

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

Tags
since
13.0.0

Table of Contents

Methods

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<string|int, mixed> &$sortArray, array<string|int, mixed> $context) : mixed
Parameters
$sortArray : array<string|int, mixed>

the array to be sorted, provided as reference

$context : array<string|int, mixed>

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

Tags
since
13.0.0

        
On this page

Search results