class Sort
Methods
|
__construct()
|
||
|
link($field, $label = null, $options = array())
|
||
|
clearSortLink($label = 'Clear Sort', $options = null)
|
||
|
filter($filterName, $elementSelector, $options = array())
|
||
| 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 Input::get() found for dvs-filters this is used in Sortable\Database\Eloquent\Builder.paginate |
Details
at line 11
public
__construct()
at line 17
public
link($field, $label = null, $options = array())
at line 23
public
clearSortLink($label = 'Clear Sort', $options = null)
at line 29
public
filter($filterName, $elementSelector, $options = array())
at line 42
public void
setDefaultOrderBy(string $field, string $dir = 'asc')
Sets the default value of defaultOrderBy
at line 54
public void
handleSorting(QueryBuilder $query, Model $model)
Ads orderBy to the current query in builder
at line 95
public void
handleFiltering(QueryBuilder $query, Eloquent $model)
We process filtering on this query if there is any Input::get() found for dvs-filters this is used in Sortable\Database\Eloquent\Builder.paginate
It's magic... really.