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. | 
  
   
- Returns
 - mixed 
 
Definition at line 183 of file oxdb.php.
 
 
  
  
      
        
          | oxDb::_getConnectionId  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Get connection ID
- Returns
 - link identifier 
 
Definition at line 540 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 397 of file oxdb.php.
 
 
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 325 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 364 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.
 
 
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 552 of file oxdb.php.
 
 
Returns database object
- Parameters
 - 
  
    | int | $iFetchMode | - fetch mode default numeric - 0 | 
  
   
- Exceptions
 - 
  
  
 
- Returns
 - oxLegacyDb 
 
Definition at line 428 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 508 of file oxdb.php.
 
 
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
 - 
  
  
 
- Returns
 - bool 
 
Definition at line 530 of file oxdb.php.
 
 
      
        
          | oxDb::quoteArray  | 
          ( | 
            | 
          $aStrArray | ) | 
           | 
        
      
 
 
      
        
          | oxDb::resetTblDescCache  | 
          ( | 
           | ) | 
           | 
        
      
 
Call to reset table description cache 
Definition at line 496 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::$_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: