PHP 클래스 League\FactoryMuffin\Stores\AbstractStore

저자: Graham Campbell ([email protected])
저자: Scott Robertson ([email protected])
저자: Anderson Ribeiro e Silva ([email protected])
파일 보기 프로젝트 열기: zizaco/factory-muff 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$methods string[] The underlying operational method names.

공개 메소드들

메소드 설명
deleteSaved ( ) : void Delete all the saved models.
isPending ( object $model ) : boolean Is the model waiting to be saved?
isSaved ( object $model ) : boolean Is the model saved?
markPending ( object $model ) : void Mark a model as waiting to be saved.
markSaved ( object $model ) : void Mark a model as saved.
pending ( ) : object[] Return an array of models waiting to be saved.
persist ( object $model ) : void Save the model to the database.
saved ( ) : object[] Return an array of saved models.

보호된 메소드들

메소드 설명
delete ( object $model ) : mixed Delete our object from the db.
save ( object $model ) : mixed Save our object to the db, and keep track of it.

메소드 상세

delete() 추상적인 보호된 메소드

Delete our object from the db.
abstract protected delete ( object $model ) : mixed
$model object The model instance.
리턴 mixed

deleteSaved() 공개 메소드

Delete all the saved models.
public deleteSaved ( ) : void
리턴 void

isPending() 공개 메소드

Is the model waiting to be saved?
public isPending ( object $model ) : boolean
$model object The model instance.
리턴 boolean

isSaved() 공개 메소드

Is the model saved?
public isSaved ( object $model ) : boolean
$model object The model instance.
리턴 boolean

markPending() 공개 메소드

Mark a model as waiting to be saved.
public markPending ( object $model ) : void
$model object The model instance.
리턴 void

markSaved() 공개 메소드

Mark a model as saved.
public markSaved ( object $model ) : void
$model object The model instance.
리턴 void

pending() 공개 메소드

Return an array of models waiting to be saved.
public pending ( ) : object[]
리턴 object[]

persist() 공개 메소드

Save the model to the database.
public persist ( object $model ) : void
$model object The model instance.
리턴 void

save() 추상적인 보호된 메소드

Save our object to the db, and keep track of it.
abstract protected save ( object $model ) : mixed
$model object The model instance.
리턴 mixed

saved() 공개 메소드

Return an array of saved models.
public saved ( ) : object[]
리턴 object[]

프로퍼티 상세

$methods 보호되어 있는 프로퍼티

The underlying operational method names.
protected string[] $methods
리턴 string[]