UNA
Loading...
Searching...
No Matches
BxMDb Class Reference

Public Member Functions

 __construct ($aDbConf=false)
 
 pdoExceptionHandler ($oException)
 
 error ($aError)
 
 getVersion ()
 
 connect ()
 
 res ($oStatement, $aBindings=array(), $bVerbose=null)
 
 ping ()
 
 pdoQuery ($sQuery)
 
 pdoExec ($sQuery)
 
 getOne ($oStatement, $aBindings=array(), $iIndex=0)
 
 prepare ($sQuery)
 
 getRow ($oStatement, $aBindings=array(), $iFetchType=PDO::FETCH_ASSOC)
 
 query ($oStatement, $aBindings=array(), $bVerbose=null)
 
 getAll ($oStatement, $aBindings=array(), $iFetchType=PDO::FETCH_ASSOC)
 
 getPairs ($oStatement, $sFieldKey, $sFieldValue, $aBindings=array())
 
 getFirstRow ($oStatement, $aBindings=array(), $iFetchType=PDO::FETCH_ASSOC)
 
 getNextRow ($iFetchType=PDO::FETCH_ASSOC)
 
 isTableExists ($sTable)
 
 getParam ($sName)
 

Public Attributes

 $_bPdoPersistent
 
 $_iPdoFetchType
 
 $_iPdoErrorMode
 
 $_bErrorChecking
 
 $_aError
 
 $_sHost
 
 $_sPort
 
 $_sSocket
 
 $_sDbname
 
 $_sUser
 
 $_sPassword
 
 $_sCharset
 
 $_sStorageEngine
 
 $_oStatement = null
 
 $_oDbCacheObject = null
 

Static Public Attributes

static $_rLink
 
static $_aDbCacheData
 
static $_sErrorKey = 'bx_db_error'
 
static $_aErrors
 

Protected Member Functions

 errorOutput ($aError)
 
 executeStatement ($oStatement, $aBindings=array(), $bVerbose=null)
 
 executeStatementException ($oStatement, $aBindings=array(), $bVerbose=null)
 
 executeStatementSilent ($oStatement, $aBindings=array(), $bVerbose=null)
 

Detailed Description

BxMDb Class allows to create connect with Dolphin's database

Member Function Documentation

◆ getVersion()

BxMDb::getVersion ( )

get mysql version

◆ pdoExceptionHandler()

BxMDb::pdoExceptionHandler ( $oException)

database query exception handler for exceptions appeared out of the try/catch block

Member Data Documentation

◆ $_aErrors

BxMDb::$_aErrors
static
Initial value:
= array(
BX_DB_ERR_CONNECT_FAILD => 'Database connect failed',
BX_DB_ERR_QUERY_ERROR => 'Database query error',
BX_DB_ERR_ESCAPE => 'Escape string error'
)

The documentation for this class was generated from the following file: