Method |
Description |
|
__call ( $name, $arguments ) |
|
|
__construct ( $data = [] ) |
|
|
deleteBy ( string $field, mixed $value ) |
Delete records matching the condition |
|
getCollection ( ) : array |
Get all records from the table |
|
getCollectionBy ( string $field, mixed $value ) : array |
Get array of matching records |
|
getData ( ) : Array |
Get object data |
|
getLastInsertId ( ) : mixed |
Get id of the recently inserted record |
|
hasData ( ) : boolean |
Check if there are any data in current object |
|
insert ( ) : mixed |
Insert current object data into database |
|
load ( integer $value ) : Db |
Get single record by primary key |
|
loadBy ( string $field, mixed $value ) : Db |
Get single record matching condition |
|
setData ( array $data ) |
Set object data |
|