ISearchOrder
in
Tags
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
DIRECTION_DESCENDING
public
mixed
DIRECTION_DESCENDING
= 'desc'
Tags
Methods
getDirection()
The direction to sort in, either ISearchOrder::DIRECTION_ASCENDING or ISearchOrder::DIRECTION_DESCENDING
public
getDirection() : string
Tags
Return values
stringgetExtra()
extra means data are not related to the main files table
public
getExtra() : string
Tags
Return values
stringgetField()
The field to sort on
public
getField() : string
Tags
Return values
stringsortFileInfo()
Apply the sorting on 2 FileInfo objects
public
sortFileInfo(FileInfo $a, FileInfo $b) : int
Parameters
Tags
Return values
int —-1 if $a < $b, 0 if $a = $b, 1 if $a > $b (for ascending, reverse for descending)