Свойство | Тип | Описание | |
---|---|---|---|
$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 |