Method |
Description |
|
__construct ( Db $db, array $options ) : Escaped |
Constructor |
|
delete ( array $columnsPassed, array $columns = null ) : void |
Delete the database record. |
|
execute ( string $sql, array $params = null ) : void |
Execute a custom SQL query. |
|
findAll ( string $order = null, array $columns = null, integer $limit = null, integer $offset = null ) : void |
Find all of the database rows by the column passed through the method argument. |
|
findBy ( array $columns, string $order = null, integer $limit = null, integer $offset = null ) : void |
Find a database row by the column passed through the method argument. |
|
findById ( mixed $id, integer $limit = null, integer $offset = null ) : void |
Find a database row by the primary ID passed through the method argument. |
|
getCount ( array $columns = null ) : integer |
Get total count of records |
|
query ( string $sql ) : void |
Execute a custom SQL query. |
|
save ( array $columnsPassed, integer $type = Pop\Db\Record::INSERT ) : void |
Save the database record. |
|