ISorter

interface OCP\Collaboration\AutoComplete\ISorter
Interface ISorter
Sorts the list of .e.g users for auto completion
Source:lib/public/Collaboration/AutoComplete/ISorter.php#33

Methods

public OCP\Collaboration\AutoComplete\ISorter::getId()
Source:lib/public/Collaboration/AutoComplete/ISorter.php#39
Returns:string The ID of the sorter, e.g. commenters
Since:13.0.0
public OCP\Collaboration\AutoComplete\ISorter::sort(&$sortArray, $context)
executes the sort action
Source:

lib/public/Collaboration/AutoComplete/ISorter.php#48

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)
Since:

13.0.0