PHP 클래스 Devise\Support\Sortable\Sort

파일 보기 프로젝트 열기: devisephp/cms 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$Framework Devise\Support\Framework
$Input Illuminate\Http\Request
$Manager Manager
$defaultOrderBy array

공개 메소드들

메소드 설명
__construct ( Manager $Manager, Framework $Framework )
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

메소드 상세

__construct() 공개 메소드

public __construct ( Manager $Manager, Framework $Framework )
$Manager Manager
$Framework Devise\Support\Framework

appendSort() 보호된 메소드

protected appendSort ( &$query, $model, $sort ) : mixed
$query
$model
$sort
리턴 mixed

belongsTo() 보호된 메소드

protected belongsTo ( $relation, $query, $model, $orderBy, $direction ) : mixed
$relation
$query
$model
$orderBy
$direction
리턴 mixed

filter() 공개 메소드

public filter ( $filterName, $elementSelector, array $options = [] ) : string
$filterName
$elementSelector
$options array
리턴 string

getAliasedForeignKey() 보호된 메소드

protected getAliasedForeignKey ( $relation, $alias ) : string
$relation
$alias
리턴 string

get_random_string() 보호된 메소드

protected get_random_string ( $length, string $valid_chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' ) : string
$length
$valid_chars string
리턴 string

handleFiltering() 공개 메소드

It's magic... really.
public handleFiltering ( QueryBuilder &$query, Eloquent $model ) : void
$query QueryBuilder
$model Eloquent
리턴 void

handleSorting() 공개 메소드

Ads orderBy to the current query in builder
public handleSorting ( QueryBuilder &$query, Model $model ) : void
$query QueryBuilder
$model Model
리턴 void

hasOne() 보호된 메소드

protected hasOne ( $relation, $query, $model, $orderBy, $direction ) : mixed
$relation
$query
$model
$orderBy
$direction
리턴 mixed

morphMany() 보호된 메소드

protected morphMany ( $relation, $query, $model, $orderBy, $direction ) : mixed
$relation
$query
$model
$orderBy
$direction
리턴 mixed

setDefaultOrderBy() 공개 메소드

Sets the default value of defaultOrderBy
public setDefaultOrderBy ( string $field, string $dir = 'asc' ) : void
$field string
$dir string
리턴 void

setSelectFromBindings() 보호된 메소드

protected setSelectFromBindings ( $query, $model )
$query
$model

sortByDefault() 보호된 메소드

protected sortByDefault ( $query, $model ) : mixed
$model
리턴 mixed

프로퍼티 상세

$Framework 보호되어 있는 프로퍼티

protected Framework,Devise\Support $Framework
리턴 Devise\Support\Framework

$Input 보호되어 있는 프로퍼티

protected Request,Illuminate\Http $Input
리턴 Illuminate\Http\Request

$Manager 보호되어 있는 프로퍼티

protected Manager,Devise\Support\Sortable $Manager
리턴 Manager

$defaultOrderBy 보호되어 있는 프로퍼티

protected array $defaultOrderBy
리턴 array