Свойство | Type | Description | |
---|---|---|---|
$Framework | |||
$Input | Illuminate\Http\Request | ||
$Manager | |||
$defaultOrderBy | array |
Méthode | 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 |
Méthode | 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 | ||
Résultat | mixed |
protected getAliasedForeignKey ( $relation, $alias ) : string | ||
$relation | ||
$alias | ||
Résultat | string |
protected get_random_string ( $length, string $valid_chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' ) : string | ||
$length | ||
$valid_chars | string | |
Résultat | string |
public handleFiltering ( QueryBuilder &$query, Eloquent $model ) : void | ||
$query | QueryBuilder | |
$model | Eloquent | |
Résultat | void |
public handleSorting ( QueryBuilder &$query, Model $model ) : void | ||
$query | QueryBuilder | |
$model | Model | |
Résultat | void |
protected setSelectFromBindings ( $query, $model ) | ||
$query | ||
$model |
protected sortByDefault ( $query, $model ) : mixed | ||
$model | ||
Résultat | mixed |
protected Framework,Devise\Support $Framework | ||
Résultat |
protected Request,Illuminate\Http $Input | ||
Résultat | Illuminate\Http\Request |