\Db

Class Db

Summary

Methods
Properties
Constants
__construct()
load()
hasError()
getError()
exists()
existsColumn()
getColumns()
select()
execute()
status()
executeSqlScript()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_connect()
_close()
_isMysqliResult()
_query()
$_oDatabase
$_bDatabase
$_oDb
$_sError
N/A

Properties

$_oDatabase

$_oDatabase : 

Type

$_bDatabase

$_bDatabase : 

Type

$_oDb

$_oDb : 

Type

$_sError

$_sError : 

Type

Methods

__construct()

__construct() : $this

__construct()

Returns

$this

load()

load() : $this|boolean

load()

Singleton to secure to create only one instance of this class.

Returns

$this|boolean

hasError()

hasError() : boolean

hasError()

Returns

boolean

getError()

getError() : string|boolean

getError()

Returns

string|boolean

exists()

exists(string  $sTableName) : boolean

exists()

Parameters

string $sTableName

Returns

boolean

existsColumn()

existsColumn(string  $sTableName, string  $sColumnName) : boolean

existsColumn()

Parameters

string $sTableName
string $sColumnName

Returns

boolean

getColumns()

getColumns(string  $sTableName) : array

getColumns()

Parameters

string $sTableName

Returns

array

select()

select(string  $sQuery) : array|boolean

select()

Parameters

string $sQuery

Returns

array|boolean

execute()

execute(string  $sQuery) : boolean

execute()

Parameters

string $sQuery

Returns

boolean

status()

status() : boolean

status()

Returns

boolean

executeSqlScript()

executeSqlScript(string  $sSqlFilename) : boolean

executeSqlScript()

Parameters

string $sSqlFilename

Returns

boolean

_connect()

_connect() : void

_connect()

_close()

_close() : void

_close()

_isMysqliResult()

_isMysqliResult(object  $oResult) : boolean

_isMysqliResult()

Parameters

object $oResult

Returns

boolean

_query()

_query(string  $sQuery) : mixed

_query()

Parameters

string $sQuery

Returns

mixed