PHP 트레잇 Hootlex\Moderation\Moderatable

상속: use trait ModerationQueryBuilder
파일 보기 프로젝트 열기: hootlex/laravel-moderation

공개 메소드들

메소드 설명
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.

getQualifiedModeratedByColumn() 공개 메소드

Get the fully qualified "moderated by" column.

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