PHP Трейт Hootlex\Moderation\Moderatable

Наследование: use trait ModerationQueryBuilder
Показать файл Открыть проект

Открытые методы

Метод Описание
approve ( $id ) : mixed Change resource status to Approved
bootModeratable ( ) : void Boot the soft deleting trait for a model.
getDates ( ) : string Get the name of the "moderated at" column.
getModeratedAtColumn ( ) : string Get the name of the "moderated at" column.
getModeratedByColumn ( ) : string Get the name of the "moderated by" column.
getQualifiedModeratedAtColumn ( ) : string Get the fully qualified "moderated at" column.
getQualifiedModeratedByColumn ( ) : string Get the fully qualified "moderated by" column.
getQualifiedStatusColumn ( ) : string Get the fully qualified "status" column.
getStatusColumn ( ) : string Get the name of the "status" column.
isApproved ( ) : boolean Determine if the model instance has been approved.
isPending ( ) : boolean Determine if the model instance has been approved.
isPostponed ( ) : boolean Determine if the model instance has been postponed.
isRejected ( ) : boolean Determine if the model instance has been approved.
markApproved ( ) : mixed Change Instance's status to Approved
markPending ( ) : mixed Change Instance's status to Pending
markPostponed ( ) : mixed Change Instance's status to Postponed
markRejected ( ) : mixed Change Instance's status to Rejected
postpone ( null $id ) : mixed Change resource status to Postpone
reject ( null $id ) : mixed Change resource status to Rejected

Описание методов

approve() публичный статический Метод

Change resource status to Approved
public static approve ( $id ) : mixed
$id
Результат mixed

bootModeratable() публичный статический Метод

Boot the soft deleting trait for a model.
public static bootModeratable ( ) : void
Результат void

getDates() публичный Метод

Append "moderated at" column to the attributes that should be converted to dates.
public getDates ( ) : string
Результат string

getModeratedAtColumn() публичный Метод

Get the name of the "moderated at" column.
public getModeratedAtColumn ( ) : string
Результат string

getModeratedByColumn() публичный Метод

Get the name of the "moderated by" column.
public getModeratedByColumn ( ) : string
Результат string

getQualifiedModeratedAtColumn() публичный Метод

Get the fully qualified "moderated at" column.
public getQualifiedModeratedAtColumn ( ) : string
Результат string

getQualifiedModeratedByColumn() публичный Метод

Get the fully qualified "moderated by" column.
public getQualifiedModeratedByColumn ( ) : string
Результат string

getQualifiedStatusColumn() публичный Метод

Get the fully qualified "status" column.
public getQualifiedStatusColumn ( ) : string
Результат string

getStatusColumn() публичный Метод

Get the name of the "status" column.
public getStatusColumn ( ) : string
Результат string

isApproved() публичный Метод

Determine if the model instance has been approved.
public isApproved ( ) : boolean
Результат boolean

isPending() публичный Метод

Determine if the model instance has been approved.
public isPending ( ) : boolean
Результат boolean

isPostponed() публичный Метод

Determine if the model instance has been postponed.
public isPostponed ( ) : boolean
Результат boolean

isRejected() публичный Метод

Determine if the model instance has been approved.
public isRejected ( ) : boolean
Результат boolean

markApproved() публичный Метод

Change Instance's status to Approved
public markApproved ( ) : mixed
Результат mixed

markPending() публичный Метод

Change Instance's status to Pending
public markPending ( ) : mixed
Результат mixed

markPostponed() публичный Метод

Change Instance's status to Postponed
public markPostponed ( ) : mixed
Результат mixed

markRejected() публичный Метод

Change Instance's status to Rejected
public markRejected ( ) : mixed
Результат mixed

postpone() публичный статический Метод

Change resource status to Postpone
public static postpone ( null $id ) : mixed
$id null
Результат mixed

reject() публичный статический Метод

Change resource status to Rejected
public static reject ( null $id ) : mixed
$id null
Результат mixed