Method |
Description |
|
__construct ( array $config ) |
Init the object and set the configuration |
|
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 |
|
find ( Modler\Model $model, array $where = [] ) : object |
Find and populate a model based on the model type and where criteria |
|
getConfig ( ) : array |
Get the configuration settings |
|
getLastError ( ) : string |
Return the last error from action taken on the datasource |
|
save ( Modler\Model $model ) : boolean |
Save the given model |
|
setConfig ( array $config ) |
Set the configuration |
|
update ( Modler\Model $model ) : boolean |
Update the record for the given model |
|