Property | Type | Description | |
---|---|---|---|
$Framework | |||
$Input | Illuminate\Http\Request | ||
$Manager | |||
$defaultOrderBy | array |
Method | Description | |
---|---|---|
__construct ( |
||
clearSortLink ( string $label = 'Clear Sort', null $options = null ) : string | ||
filter ( $filterName, $elementSelector, array $options = [] ) : string | ||
handleFiltering ( QueryBuilder &$query, Eloquent $model ) : void | 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 | |
handleSorting ( QueryBuilder &$query, Model $model ) : void | Ads orderBy to the current query in builder | |
link ( $field, null $label = null, array $options = [] ) : string | ||
setDefaultOrderBy ( string $field, string $dir = 'asc' ) : void | Sets the default value of defaultOrderBy |
Method | Description | |
---|---|---|
appendSort ( &$query, $model, $sort ) : mixed | ||
belongsTo ( $relation, $query, $model, $orderBy, $direction ) : mixed | ||
getAliasedForeignKey ( $relation, $alias ) : string | ||
get_random_string ( $length, string $valid_chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' ) : string | ||
hasOne ( $relation, $query, $model, $orderBy, $direction ) : mixed | ||
morphMany ( $relation, $query, $model, $orderBy, $direction ) : mixed | ||
setSelectFromBindings ( $query, $model ) | ||
sortByDefault ( $query, $model ) : mixed |
public __construct ( |
||
$Manager | ||
$Framework |
protected appendSort ( &$query, $model, $sort ) : mixed | ||
$query | ||
$model | ||
$sort | ||
return | mixed |
protected getAliasedForeignKey ( $relation, $alias ) : string | ||
$relation | ||
$alias | ||
return | string |
protected get_random_string ( $length, string $valid_chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' ) : string | ||
$length | ||
$valid_chars | string | |
return | string |
public handleFiltering ( QueryBuilder &$query, Eloquent $model ) : void | ||
$query | QueryBuilder | |
$model | Eloquent | |
return | void |
public handleSorting ( QueryBuilder &$query, Model $model ) : void | ||
$query | QueryBuilder | |
$model | Model | |
return | void |
protected setSelectFromBindings ( $query, $model ) | ||
$query | ||
$model |
protected sortByDefault ( $query, $model ) : mixed | ||
$model | ||
return | mixed |
protected Framework,Devise\Support $Framework | ||
return |
protected Request,Illuminate\Http $Input | ||
return | Illuminate\Http\Request |