Method |
Description |
|
__construct ( $app = null ) |
trait to save extended data, such as attributes, categories and images |
|
delete_by_id ( string $table, integer | string $id, string $field_name = 'id' ) : boolean |
Deletes item by id from db table. |
|
get ( $table, string | array $params = null ) : mixed |
Get items from the database. |
|
get_by_id ( string $table, integer | string $id, string $field_name = 'id' ) : array | boolean | mixed |
Get table row by id. |
|
last_id ( $table ) : boolean | integer |
Get last id from a table. |
|
q ( $q, $silent = false ) |
|
|
query ( string $q, string | boolean $cache_id = false, string | boolean $cache_group = 'global', boolean $only_query = false, array | boolean $connection_settings = false ) : array | boolean | mixed |
Executes plain query in the database. |
|
save ( $table, $data = false, boolean $data_to_save_options = false ) : string | integer |
Generic save data function, it saves data to the database. |
|
table ( $table ) |
|
|