Properties

$instance

$instance : 

Type

$lastError

$lastError : 

Type

$queries

$queries : 

Type

$pdo

$pdo : 

Type

Methods

getInstance()

getInstance() : \DB

Obtain DB instance

Returns

\DB

get_license_message()

get_license_message() 

executeSQL()

executeSQL(string  $query) : string

Execute an SQL statement and return the number of affected rows

Parameters

string $query

Returns

string

querySQL()

querySQL(string  $query) : \PDOStatement

Executes an SQL statement, returning a result set as a PDOStatement object

Parameters

string $query

Returns

\PDOStatement

execute()

execute(string  $query, array  $params = array()) : integer

Execute statement and return the number of affected rows

Parameters

string $query

SQL statement

array $params

array of parameters to bind

Returns

integer

query()

query(string  $query, array  $params = array(), integer  $rows,   $success_mark = false) : \PDOStatement

Executes statement, returning a result set as a PDOStatement object

Parameters

string $query

SQL statement

array $params

array of parameters to bind

integer $rows

number of selected rows

$success_mark

Returns

\PDOStatement —

| false

lastInsertId()

lastInsertId() : integer

Returns the ID of the last inserted row or sequence value

Returns

integer

beginTransaction()

beginTransaction() : boolean

Initiates a transaction

Returns

boolean

commit()

commit() : boolean

Commits a transaction

Returns

boolean

rollback()

rollback() : boolean

Rolls back a transaction

Returns

boolean

debugQueries()

debugQueries() 

fetch()

fetch(  $stmt) 

Parameters

$stmt

getLastError()

getLastError() 

__construct()

__construct() 

decode()

decode(  $key) 

Parameters

$key

paramType()

paramType(  $param) 

Parameters

$param

exec()

exec(  $sql,   $params = array(),   $success,   $rows) 

Parameters

$sql
$params
$success
$rows