PHP 클래스 Nanigans\SingleTableInheritance\SingleTableInheritanceScope

상속: implements Illuminate\Database\Eloquent\ScopeInterface
파일 보기 프로젝트 열기: nanigans/single-table-inheritance

공개 메소드들

메소드 설명
apply ( Builder $builder, Model $model ) : void Apply the scope to a given Eloquent query builder.
remove ( Builder $builder, Model $model ) : void Remove the scope from the given Eloquent query builder.

보호된 메소드들

메소드 설명
isSingleTableInheritanceConstraint ( array $where, string $column ) : boolean Determine if the given where clause is a single table inheritance constraint.

메소드 상세

apply() 공개 메소드

Apply the scope to a given Eloquent query builder.
public apply ( Builder $builder, Model $model ) : void
$builder Illuminate\Database\Eloquent\Builder
$model Illuminate\Database\Eloquent\Model
리턴 void

isSingleTableInheritanceConstraint() 보호된 메소드

Determine if the given where clause is a single table inheritance constraint.
protected isSingleTableInheritanceConstraint ( array $where, string $column ) : boolean
$where array
$column string
리턴 boolean

remove() 공개 메소드

Remove the scope from the given Eloquent query builder.
public remove ( Builder $builder, Model $model ) : void
$builder Illuminate\Database\Eloquent\Builder
$model Illuminate\Database\Eloquent\Model
리턴 void