PHP 클래스 Psecio\Gatekeeper\DataSource\Stub

상속: extends Psecio\Gatekeeper\DataSource
파일 보기 프로젝트 열기: psecio/gatekeeper

공개 메소드들

메소드 설명
count ( Modler\Model $model, array $where = [] ) : boolean Return the number of entities in DB per condition or in general
create ( Modler\Model $model ) : boolean Create a new record with model given
delete ( Modler\Model $model ) : boolean Delete the record defined by the model data
fetch ( ) : boolean Fetch the data from the source
find ( Modler\Model $model, array $where = [] ) : boolean Find and populate a model based on the model type and where criteria
getLastError ( ) : string Return the last error from action taken on the datasource
save ( Modler\Model $model ) : boolean Save the given model
update ( Modler\Model $model ) : boolean Update the record for the given model

메소드 상세

count() 공개 메소드

Return the number of entities in DB per condition or in general
public count ( Modler\Model $model, array $where = [] ) : boolean
$model Modler\Model Model instance
$where array
리턴 boolean Success/fail of action

create() 공개 메소드

Create a new record with model given
public create ( Modler\Model $model ) : boolean
$model Modler\Model Model instance
리턴 boolean Success/fail of action

delete() 공개 메소드

Delete the record defined by the model data
public delete ( Modler\Model $model ) : boolean
$model Modler\Model Model instance
리턴 boolean Success/fail of action

fetch() 공개 메소드

Fetch the data from the source
public fetch ( ) : boolean
리턴 boolean Success/fail of action

find() 공개 메소드

Find and populate a model based on the model type and where criteria
public find ( Modler\Model $model, array $where = [] ) : boolean
$model Modler\Model Model instance
$where array "Where" data to locate record
리턴 boolean Success/fail of action

getLastError() 공개 메소드

Return the last error from action taken on the datasource
public getLastError ( ) : string
리턴 string Error string

save() 공개 메소드

Save the given model
public save ( Modler\Model $model ) : boolean
$model Modler\Model Model instance
리턴 boolean Success/fail of action

update() 공개 메소드

Update the record for the given model
public update ( Modler\Model $model ) : boolean
$model Modler\Model Model instance
리턴 boolean Success/fail of action