프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$Framework | |||
$Input | Illuminate\Http\Request | ||
$Manager | |||
$defaultOrderBy | array |
메소드 | 설명 | |
---|---|---|
__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 |
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | mixed |
protected getAliasedForeignKey ( $relation, $alias ) : string | ||
$relation | ||
$alias | ||
리턴 | string |
protected get_random_string ( $length, string $valid_chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' ) : string | ||
$length | ||
$valid_chars | string | |
리턴 | string |
public handleFiltering ( QueryBuilder &$query, Eloquent $model ) : void | ||
$query | QueryBuilder | |
$model | Eloquent | |
리턴 | void |
public handleSorting ( QueryBuilder &$query, Model $model ) : void | ||
$query | QueryBuilder | |
$model | Model | |
리턴 | void |