PHP Класс Psecio\Gatekeeper\DataSource\Stub

Наследование: extends Psecio\Gatekeeper\DataSource
Показать файл Открыть проект

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

Метод Описание
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