Static Public Attributes |
static | $configSet = false |
Detailed Description
Database connection class
Definition at line 10 of file oxdb.php.
Member Function Documentation
static oxDb::_getConfigParam |
( |
|
$sConfigName | ) |
|
|
staticprotected |
Return local config value by given name.
- Parameters
-
string | $sConfigName | returning config name. |
- Deprecated:
- since v5.3.5 (2017-10-05); This method will be removed in v6.0.
- Returns
- mixed
Definition at line 227 of file oxdb.php.
oxDb::_getConnectionId |
( |
| ) |
|
|
protected |
Get connection ID
- Deprecated:
- since v5.3.5 (2017-10-05); This method will be removed in v6.0.
- Returns
- link identifier
Definition at line 611 of file oxdb.php.
oxDb::_getDbInstance |
( |
|
$iInstType = false | ) |
|
|
protected |
Returns database instance object for given type
- Parameters
-
int | $iInstType | instance type |
- Deprecated:
- since v5.3.5 (2017-10-05); This method will be removed in v6.0.
- Returns
- ADONewConnection
Definition at line 458 of file oxdb.php.
Returns adodb modules string
- Deprecated:
- since v5.3.5 (2017-10-05); This method will be removed in v6.0.
- Returns
- string
Definition at line 278 of file oxdb.php.
oxDb::_notifyConnectionErrors |
( |
|
$oDb | ) |
|
|
protected |
Notifying shop owner about connection problems
- Parameters
-
ADOConnection | $oDb | database connection instance |
- Deprecated:
- since v5.3.5 (2017-10-05); This method will be removed in v6.0.
Definition at line 382 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 |
- Deprecated:
- since v5.3.5 (2017-10-05); This method will be removed in v6.0.
Definition at line 423 of file oxdb.php.
oxDb::_registerAdoDbExceptionHandler |
( |
| ) |
|
|
protected |
Registers AdoDb exceptions handler for SQL errors
- Deprecated:
- since v5.3.5 (2017-10-05); This method will be removed in v6.0.
Definition at line 302 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 |
- Deprecated:
- since v5.3.5 (2017-10-05); This method will be removed in v6.0.
- Returns
- phpmailer
Definition at line 360 of file oxdb.php.
Setting up connection parameters - sql mode, encoding, logging etc
- Parameters
-
ADOConnection | $oDb | database connection instance |
- Deprecated:
- since v5.3.5 (2017-10-05); This method will be removed in v6.0.
Definition at line 317 of file oxdb.php.
oxDb::escapeString |
( |
|
$sString | ) |
|
Escape string for using in mysql statements
- Parameters
-
string | $sString | string which will be escaped |
- Deprecated:
- since v5.3.0 (2016-06-06); This method will be removed in v6.0. Use oxLegacyDb::quote() to quote values. As of v6.0 there will be a new method quoteIdentifier() to quote strings in order to use them as identifiers.
- Returns
- string
Definition at line 626 of file oxdb.php.
Returns database object
- Parameters
-
int | $iFetchMode | - fetch mode default numeric - 0 |
- Exceptions
-
- Returns
- DatabaseInterface
Definition at line 489 of file oxdb.php.
static oxDb::getInstance |
( |
| ) |
|
|
static |
Returns Singleton instance
- Returns
- oxdb
Definition at line 241 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 575 of file oxdb.php.
Cal function is admin from oxFunction. Need to mock in tests.
- Returns
- bool
Definition at line 266 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
-
- Deprecated:
- since v5.3.0 (2016-06-06); This method will be removed in v6.0.
- Returns
- bool
Definition at line 599 of file oxdb.php.
oxDb::quoteArray |
( |
|
$aStrArray | ) |
|
oxDb::resetTblDescCache |
( |
| ) |
|
Call to reset table description cache
- Deprecated:
- since v5.3.0 (2016-06-06); This method will be removed in v6.0.
Definition at line 563 of file oxdb.php.
static oxDb::setConfig |
( |
|
$oConfig | ) |
|
|
static |
Sets configs object with method getVar() and properties needed for successful connection.
- Parameters
-
- Deprecated:
- since v5.3.5 (2017-10-05); This method will be removed in v6.0.
Definition at line 198 of file oxdb.php.
Member Data Documentation
oxDb::$_aTblDescCache = array() |
|
staticprotected |
oxDb::$_blLogChangesInAdmin = false |
|
staticprivate |
oxDb::$_iMasterSlaveBalance |
|
staticprivate |
oxDb::$_sDefaultDatabaseConnection = null |
|
staticprivate |
const oxDb::FETCH_MODE_ASSOC = ADODB_FETCH_ASSOC |
const oxDb::FETCH_MODE_NUM = ADODB_FETCH_NUM |
The documentation for this class was generated from the following file: