프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$extensions | array | All of the extensions to be added to the builder. |
메소드 | 설명 | |
---|---|---|
apply ( |
Apply the scope to a given Eloquent query builder. | |
extend ( |
Extend the query builder with the needed functions. | |
remove ( |
Remove the scope from the given Eloquent query builder. |
메소드 | 설명 | |
---|---|---|
addApprove ( |
Add the Approve extension to the builder. | |
addPend ( |
Add the Postpone extension to the builder. | |
addPending ( |
Add the Pending extension to the builder. | |
addPostpone ( |
Add the Postpone extension to the builder. | |
addPostponed ( |
Add the Postponed extension to the builder. | |
addReject ( |
Add the Reject extension to the builder. | |
addRejected ( |
Add the Rejected extension to the builder. | |
addWithAnyStatus ( |
Add the with-any-status extension to the builder. | |
addWithPending ( |
Add the with-pending extension to the builder. | |
addWithPostponed ( |
Add the with-postpone extension to the builder. | |
addWithRejected ( |
Add the with-rejected extension to the builder. | |
getStatusColumn ( |
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 ( |
protected addApprove ( |
||
$builder | ||
리턴 | void |
protected addPending ( |
||
$builder | ||
리턴 | void |
protected addPostpone ( |
||
$builder | ||
리턴 | void |
protected addPostponed ( |
||
$builder | ||
리턴 | void |
protected addRejected ( |
||
$builder | ||
리턴 | void |
protected addWithAnyStatus ( |
||
$builder | ||
리턴 | void |
protected addWithPending ( |
||
$builder | ||
리턴 | void |
protected addWithPostponed ( |
||
$builder | ||
리턴 | void |
protected addWithRejected ( |
||
$builder | ||
리턴 | void |
protected getStatusColumn ( |
||
$builder | ||
리턴 | string |
protected removeBinding ( $query, integer $key ) | ||
$query | ||
$key | integer |
protected removeWhere ( $query, integer $key ) | ||
$query | ||
$key | integer |
protected array $extensions | ||
리턴 | array |