Sort
class Sort
Class Sort handles creating links and filters for us which
Methods
string
link($field, null $label = null, array $options = array())
No description
string
clearSortLink(string $label = 'Clear Sort', null $options = null)
No description
string
filter($filterName, $elementSelector, array $options = array())
No description
void
setDefaultOrderBy(string $field, string $dir = 'asc')
Sets the default value of defaultOrderBy
void
handleSorting(QueryBuilder $query, Model $model)
Ads orderBy to the current query in builder
void
handleFiltering(QueryBuilder $query, Eloquent $model)
We process filtering on this query if there is any $this->Input->get() found for dvs-filters this is used in Sortable\Database\Eloquent\Builder.paginate
Details
at line 50
string
link($field, null $label = null, array $options = array())
at line 61
string
clearSortLink(string $label = 'Clear Sort', null $options = null)
at line 73
string
filter($filterName, $elementSelector, array $options = array())
at line 86
void
setDefaultOrderBy(string $field, string $dir = 'asc')
Sets the default value of defaultOrderBy
at line 98
void
handleSorting(QueryBuilder $query, Model $model)
Ads orderBy to the current query in builder
at line 139
void
handleFiltering(QueryBuilder $query, Eloquent $model)
We process filtering on this query if there is any $this->Input->get() found for dvs-filters this is used in Sortable\Database\Eloquent\Builder.paginate
It's magic... really.