List of all members.
Detailed Description
Database connection class
Definition at line 10 of file oxdb.php.
Member Function Documentation
static oxDb._getConfigParam |
( |
$ |
sConfigName |
) |
[static, protected] |
Return local config value by given name.
- Parameters:
-
| string | $sConfigName returning config name. |
- Returns:
- mixed
Definition at line 183 of file oxdb.php.
oxDb._getConnectionId |
( |
|
) |
[protected] |
Get connection ID
- Returns:
- link identifier
Definition at line 539 of file oxdb.php.
oxDb._getDbInstance |
( |
$ |
iInstType = false |
) |
[protected] |
Returns database instance object for given type
- Parameters:
-
| int | $iInstType instance type |
- Returns:
- ADONewConnection
Definition at line 396 of file oxdb.php.
oxDb._getModules |
( |
|
) |
[protected] |
Returns adodb modules string
- Returns:
- string
Definition at line 232 of file oxdb.php.
oxDb._notifyConnectionErrors |
( |
$ |
oDb |
) |
[protected] |
Notifying shop owner about connection problems
- Parameters:
-
| ADOConnection | $oDb database connection instance |
Definition at line 324 of file oxdb.php.
oxDb._onConnectionError |
( |
$ |
oDb |
) |
[protected] |
In case of connection error - redirects to setup or send notification message for shop owner
- Parameters:
-
| ADOConnection | $oDb database connection instance |
Definition at line 363 of file oxdb.php.
oxDb._registerAdoDbExceptionHandler |
( |
|
) |
[protected] |
Registers AdoDb exceptions handler for SQL errors
Definition at line 254 of file oxdb.php.
oxDb._sendMail |
( |
$ |
sEmail, |
|
|
$ |
sSubject, |
|
|
$ |
sBody | |
|
) |
| | [protected] |
Returns $oMailer instance
- Parameters:
-
| string | $sEmail email address |
| string | $sSubject subject |
| string | $sBody email body |
- Returns:
- phpmailer
Definition at line 305 of file oxdb.php.
oxDb._setUp |
( |
$ |
oDb |
) |
[protected] |
Setting up connection parameters - sql mode, encoding, logging etc
- Parameters:
-
| ADOConnection | $oDb database connection instance |
Definition at line 267 of file oxdb.php.
oxDb.escapeString |
( |
$ |
sString |
) |
|
Escape string for using in mysql statements
- Parameters:
-
| string | $sString string which will be escaped |
- Returns:
- string
Definition at line 551 of file oxdb.php.
Returns database object
- Parameters:
-
| int | $iFetchMode - fetch mode default numeric - 0 |
- Exceptions:
-
- Returns:
- oxLegacyDb
Definition at line 427 of file oxdb.php.
static oxDb.getInstance |
( |
|
) |
[static] |
Returns Singleton instance
- Returns:
- oxdb
Definition at line 197 of file oxdb.php.
oxDb.getTableDescription |
( |
$ |
sTableName |
) |
|
Extracts and returns table metadata from DB.
- Parameters:
-
| string | $sTableName Name of table to invest. |
- Returns:
- array
Definition at line 507 of file oxdb.php.
oxDb.isAdmin |
( |
|
) |
[protected] |
Cal function is admin from oxFunction. Need to mock in tests.
- Returns:
- bool
Definition at line 222 of file oxdb.php.
oxDb.isValidFieldName |
( |
$ |
sField |
) |
|
Checks if given string is valid database field name. It must contain from alphanumeric plus dot and underscore symbols
- Parameters:
-
| string | $sField field name |
- Returns:
- bool
Definition at line 529 of file oxdb.php.
oxDb.quoteArray |
( |
$ |
aStrArray |
) |
|
oxDb.resetTblDescCache |
( |
|
) |
|
Call to reset table description cache
Definition at line 495 of file oxdb.php.
static oxDb.setConfig |
( |
$ |
oConfig |
) |
[static] |
Sets configs object with method getVar() and properties needed for successful connection.
- Parameters:
-
Definition at line 158 of file oxdb.php.
Member Data Documentation
oxDb.$_aSlaveHosts [static, private] |
oxDb.$_aTblDescCache = array() [static, protected] |
oxDb.$_blLogChangesInAdmin = false [static, private] |
oxDb.$_dbHost = '' [static, private] |
oxDb.$_dbName = '' [static, private] |
oxDb.$_dbPwd = '' [static, private] |
oxDb.$_dbType = '' [static, private] |
oxDb.$_dbUser = '' [static, private] |
oxDb.$_iDebug = 0 [static, private] |
oxDb.$_iMasterSlaveBalance [static, private] |
oxDb.$_instance = null [static, protected] |
oxDb.$_iUtfMode = 0 [static, private] |
oxDb.$_oDB = null [static, protected] |
oxDb.$_sAdminEmail [static, private] |
oxDb.$_sDefaultDatabaseConnection = null [static, private] |
oxDb.$_sLocalDateFormat [static, private] |
oxDb.$_sLocalTimeFormat [static, private] |
oxDb.$configSet = false [static] |
The documentation for this class was generated from the following file: