Method |
Description |
|
__construct ( ptejada\uFlex\DB $db, string $table ) |
Initializes a database table object |
|
getLastInsertedID ( ) : integer |
Get the ID of the last inserted record |
|
getRow ( array $arguments ) : boolean | ptejada\uFlex\Collection |
Get a single row from the table depending on arguments |
|
getStatement ( string $sql, boolean | mixed[] $args = false ) : boolean | PDOStatement |
Get a PDO statement |
|
isUnique ( string $field, string | integer $val, boolean | string $customError = false ) : boolean |
Test field value in database
Check for the uniqueness of a value in a specified field/column. |
|
query ( $sql, boolean $arguments = false ) : boolean | PDOStatement |
Query the table |
|
runQuery ( string $sql, array | boolean $arguments = false ) : boolean |
Executes SQL query and checks for success |
|