PHP 인터페이스 Esensi\Model\Contracts\SoftDeletingModelInterface

저자: Daniel LaBarge ([email protected])
파일 보기 프로젝트 열기: esensi/model

공개 메소드들

메소드 설명
forceDelete ( ) Force a hard delete on a soft deleted model.
getDeletedAtColumn ( ) : string Get the name of the "deleted at" column.
getQualifiedDeletedAtColumn ( ) : string Get the fully qualified "deleted at" column.
restore ( ) : boolean | null Restore a soft-deleted model instance.
restored ( Closure | string $callback ) Register a restored model event with the dispatcher.
restoring ( Closure | string $callback ) Register a restoring model event with the dispatcher.
trashed ( ) : boolean Determine if the model instance has been soft-deleted.

메소드 상세

forceDelete() 공개 메소드

Force a hard delete on a soft deleted model.
public forceDelete ( )

getDeletedAtColumn() 공개 메소드

Get the name of the "deleted at" column.
public getDeletedAtColumn ( ) : string
리턴 string

getQualifiedDeletedAtColumn() 공개 메소드

Get the fully qualified "deleted at" column.

restore() 공개 메소드

Restore a soft-deleted model instance.
public restore ( ) : boolean | null
리턴 boolean | null

restored() 공개 정적인 메소드

Register a restored model event with the dispatcher.
public static restored ( Closure | string $callback )
$callback Closure | string

restoring() 공개 정적인 메소드

Register a restoring model event with the dispatcher.
public static restoring ( Closure | string $callback )
$callback Closure | string

trashed() 공개 메소드

Determine if the model instance has been soft-deleted.
public trashed ( ) : boolean
리턴 boolean