GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
If this file is called directly, abort. More...
Public Member Functions | |
__construct (\GV\Field $field, $direction=self::ASC, $mode=self::ALPHA) | |
Instantiate a sort for a field. More... | |
to_sorting () | |
Return search_criteria-compatible array. More... | |
Data Fields | |
$direction | |
$field | |
$mode | |
const | ALPHA = 'ALPHA' |
const | ASC = 'ASC' |
const | DESC = 'DESC' |
const | NUMERIC = 'NUMERIC' |
const | RAND = 'RAND' |
If this file is called directly, abort.
Entry sorting.
Definition at line 12 of file class-gv-collection-entry-sort.php.
__construct | ( | \GV\Field | $field, |
$direction = self::ASC , |
|||
$mode = self::ALPHA |
|||
) |
Instantiate a sort for a field.
\GV\Field | $field | The field we're sorting by. |
string | $direction | The direction of this sort (::ASC, ::DESC, etc.). Default: self::ASC. |
string | $mode | The sort mode (self::NUMERIC). Default: self::ALPHA. |
Definition at line 66 of file class-gv-collection-entry-sort.php.
References $field.
to_sorting | ( | ) |
Return search_criteria-compatible array.
key
, direction
, is_numeric
] Definition at line 77 of file class-gv-collection-entry-sort.php.
$direction |
Definition at line 47 of file class-gv-collection-entry-sort.php.
$field |
Definition at line 42 of file class-gv-collection-entry-sort.php.
$mode |
Definition at line 52 of file class-gv-collection-entry-sort.php.
const ALPHA = 'ALPHA' |
Definition at line 37 of file class-gv-collection-entry-sort.php.
const ASC = 'ASC' |
Definition at line 17 of file class-gv-collection-entry-sort.php.
Referenced by gvfield\callback(), and View\get_entries().
const DESC = 'DESC' |
Definition at line 22 of file class-gv-collection-entry-sort.php.
Referenced by gvfield\callback(), and View\get_entries().
const NUMERIC = 'NUMERIC' |
Definition at line 32 of file class-gv-collection-entry-sort.php.
Referenced by gvfield\callback().
const RAND = 'RAND' |
Definition at line 27 of file class-gv-collection-entry-sort.php.
Referenced by gvfield\callback().