Nextcloud PHP API (master)

ISearchOrder

Tags
since
12.0.0

Table of Contents

Constants

DIRECTION_ASCENDING  = 'asc'
DIRECTION_DESCENDING  = 'desc'

Methods

getDirection()  : string
The direction to sort in, either ISearchOrder::DIRECTION_ASCENDING or ISearchOrder::DIRECTION_DESCENDING
getExtra()  : string
extra means data are not related to the main files table
getField()  : string
The field to sort on
sortFileInfo()  : int
Apply the sorting on 2 FileInfo objects

Constants

DIRECTION_ASCENDING

public mixed DIRECTION_ASCENDING = 'asc'
Tags
since
12.0.0

DIRECTION_DESCENDING

public mixed DIRECTION_DESCENDING = 'desc'
Tags
since
12.0.0

Methods

getDirection()

The direction to sort in, either ISearchOrder::DIRECTION_ASCENDING or ISearchOrder::DIRECTION_DESCENDING

public getDirection() : string
Tags
since
12.0.0
Return values
string

getExtra()

extra means data are not related to the main files table

public getExtra() : string
Tags
since
28.0.0
Return values
string

getField()

The field to sort on

public getField() : string
Tags
since
12.0.0
Return values
string

sortFileInfo()

Apply the sorting on 2 FileInfo objects

public sortFileInfo(FileInfo $a, FileInfo $b) : int
Parameters
$a : FileInfo
$b : FileInfo
Tags
since
22.0.0
Return values
int

-1 if $a < $b, 0 if $a = $b, 1 if $a > $b (for ascending, reverse for descending)


        
On this page

Search results