PHP 클래스 Hootlex\Moderation\ModerationScope

상속: implements Illuminate\Database\Eloquent\Scope
파일 보기 프로젝트 열기: hootlex/laravel-moderation

보호된 프로퍼티들

프로퍼티 타입 설명
$extensions array All of the extensions to be added to the builder.

공개 메소드들

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

보호된 메소드들

메소드 설명
addApprove ( Builder $builder ) : void Add the Approve extension to the builder.
addPend ( Builder $builder ) : void Add the Postpone extension to the builder.
addPending ( Builder $builder ) : void Add the Pending extension to the builder.
addPostpone ( Builder $builder ) : void Add the Postpone extension to the builder.
addPostponed ( Builder $builder ) : void Add the Postponed extension to the builder.
addReject ( Builder $builder ) : void Add the Reject extension to the builder.
addRejected ( Builder $builder ) : void Add the Rejected extension to the builder.
addWithAnyStatus ( Builder $builder ) : void Add the with-any-status extension to the builder.
addWithPending ( Builder $builder ) : void Add the with-pending extension to the builder.
addWithPostponed ( Builder $builder ) : void Add the with-postpone extension to the builder.
addWithRejected ( Builder $builder ) : void Add the with-rejected extension to the builder.
getStatusColumn ( Builder $builder ) : string Get the "deleted at" column for the builder.
isModerationConstraint ( array $where, string $column ) : boolean Determine if the given where clause is a moderation constraint.
removeBinding ( $query, integer $key ) Remove scope constraint from the query.
removeWhere ( $query, integer $key ) Remove scope constraint from the query.

비공개 메소드들

메소드 설명
updateModerationStatus ( Builder $builder, $id, $status ) : boolean | integer

메소드 상세

addApprove() 보호된 메소드

Add the Approve extension to the builder.
protected addApprove ( Builder $builder ) : void
$builder Illuminate\Database\Eloquent\Builder
리턴 void

addPend() 보호된 메소드

Add the Postpone extension to the builder.
protected addPend ( Builder $builder ) : void
$builder Illuminate\Database\Eloquent\Builder
리턴 void

addPending() 보호된 메소드

Add the Pending extension to the builder.
protected addPending ( Builder $builder ) : void
$builder Illuminate\Database\Eloquent\Builder
리턴 void

addPostpone() 보호된 메소드

Add the Postpone extension to the builder.
protected addPostpone ( Builder $builder ) : void
$builder Illuminate\Database\Eloquent\Builder
리턴 void

addPostponed() 보호된 메소드

Add the Postponed extension to the builder.
protected addPostponed ( Builder $builder ) : void
$builder Illuminate\Database\Eloquent\Builder
리턴 void

addReject() 보호된 메소드

Add the Reject extension to the builder.
protected addReject ( Builder $builder ) : void
$builder Illuminate\Database\Eloquent\Builder
리턴 void

addRejected() 보호된 메소드

Add the Rejected extension to the builder.
protected addRejected ( Builder $builder ) : void
$builder Illuminate\Database\Eloquent\Builder
리턴 void

addWithAnyStatus() 보호된 메소드

Add the with-any-status extension to the builder.
protected addWithAnyStatus ( Builder $builder ) : void
$builder Illuminate\Database\Eloquent\Builder
리턴 void

addWithPending() 보호된 메소드

Add the with-pending extension to the builder.
protected addWithPending ( Builder $builder ) : void
$builder Illuminate\Database\Eloquent\Builder
리턴 void

addWithPostponed() 보호된 메소드

Add the with-postpone extension to the builder.
protected addWithPostponed ( Builder $builder ) : void
$builder Illuminate\Database\Eloquent\Builder
리턴 void

addWithRejected() 보호된 메소드

Add the with-rejected extension to the builder.
protected addWithRejected ( Builder $builder ) : void
$builder Illuminate\Database\Eloquent\Builder
리턴 void

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

extend() 공개 메소드

Extend the query builder with the needed functions.
public extend ( Builder $builder ) : void
$builder Illuminate\Database\Eloquent\Builder
리턴 void

getStatusColumn() 보호된 메소드

Get the "deleted at" column for the builder.
protected getStatusColumn ( Builder $builder ) : string
$builder Illuminate\Database\Eloquent\Builder
리턴 string

isModerationConstraint() 보호된 메소드

Determine if the given where clause is a moderation constraint.
protected isModerationConstraint ( array $where, string $column ) : boolean
$where array
$column string
리턴 boolean

remove() 공개 메소드

(This method exists in order to achieve compatibility with laravel 5.1.*)
public remove ( Builder $builder, Model $model ) : void
$builder Illuminate\Database\Eloquent\Builder
$model Illuminate\Database\Eloquent\Model
리턴 void

removeBinding() 보호된 메소드

Remove scope constraint from the query.
protected removeBinding ( $query, integer $key )
$query
$key integer

removeWhere() 보호된 메소드

Remove scope constraint from the query.
protected removeWhere ( $query, integer $key )
$query
$key integer

프로퍼티 상세

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

All of the extensions to be added to the builder.
protected array $extensions
리턴 array