abstract database driver class.  
 More...
 | 
|   | connect ($server, $scheme, $port, $user, $pass, $db) | 
|   | Connect to the database.  More...
  | 
|   | 
|   | q ($sql) | 
|   | Perform a DB query with the SQL statement $sql.  More...
  | 
|   | 
|   | escape ($str) | 
|   | Escape a string before being passed to a DB query.  More...
  | 
|   | 
|   | close () | 
|   | Close the database connection.  More...
  | 
|   | 
|   | getdriver () | 
|   | Return text name for db driver.  More...
  | 
|   | 
|   | __construct ($server, $scheme, $port, $user, $pass, $db, $install=false) | 
|   | 
|   | get_null_date () | 
|   | 
|   | get_install_script () | 
|   | 
|   | get_table_quote () | 
|   | 
|   | utcnow () | 
|   | 
|   | install ($server, $scheme, $port, $user, $pass, $db) | 
|   | 
|   | dbg ($dbg) | 
|   | Sets the database driver's debugging state.  More...
  | 
|   | 
|   | __destruct () | 
|   | 
|   | quote_interval ($txt) | 
|   | 
|   | optimize_table ($table) | 
|   | 
|   | concat ($fld, $sep) | 
|   | 
|   | escapebin ($str) | 
|   | 
|   | unescapebin ($str) | 
|   | 
|   | pdo_set ($x) | 
|   | 
|   | pdo_get () | 
|   | 
abstract database driver class. 
This class gets extended by the real database driver classes, e.g. dba_mysql, dba_mysqli. 
 
      
        
          | dba_driver::__construct  | 
          ( | 
            | 
          $server,  | 
        
        
           | 
           | 
            | 
          $scheme,  | 
        
        
           | 
           | 
            | 
          $port,  | 
        
        
           | 
           | 
            | 
          $user,  | 
        
        
           | 
           | 
            | 
          $pass,  | 
        
        
           | 
           | 
            | 
          $db,  | 
        
        
           | 
           | 
            | 
          $install = false  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | dba_driver::__destruct  | 
          ( | 
           | ) | 
           | 
        
      
 
 
Close the database connection. 
This abstract function needs to be implemented in the real driver. 
Referenced by __destruct().
 
 
      
        
          | dba_driver::concat  | 
          ( | 
            | 
          $fld,  | 
        
        
           | 
           | 
            | 
          $sep  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
  
  
      
        
          | dba_driver::connect  | 
          ( | 
            | 
          $server,  | 
         
        
           | 
           | 
            | 
          $scheme,  | 
         
        
           | 
           | 
            | 
          $port,  | 
         
        
           | 
           | 
            | 
          $user,  | 
         
        
           | 
           | 
            | 
          $pass,  | 
         
        
           | 
           | 
            | 
          $db  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
abstract   | 
  
 
Connect to the database. 
This abstract function needs to be implemented in the real driver.
- Parameters
 - 
  
    | string | $server | DB server name  | 
    | string | $port | DB port  | 
    | string | $user | DB username  | 
    | string | $pass | DB password  | 
    | string | $db | database name  | 
  
   
- Returns
 - bool 
 
Referenced by __construct().
 
 
Sets the database driver's debugging state. 
- Parameters
 - 
  
    | int | $dbg | 0 to disable debugging  | 
  
   
 
 
  
  
      
        
          | dba_driver::escape  | 
          ( | 
            | 
          $str | ) | 
           | 
         
       
   | 
  
abstract   | 
  
 
Escape a string before being passed to a DB query. 
This abstract function needs to be implemented in the real driver.
- Parameters
 - 
  
    | string | $str | The string to escape.  | 
  
   
 
 
      
        
          | dba_driver::escapebin  | 
          ( | 
            | 
          $str | ) | 
           | 
        
      
 
 
      
        
          | dba_driver::get_install_script  | 
          ( | 
           | ) | 
           | 
        
      
 
 
      
        
          | dba_driver::get_null_date  | 
          ( | 
           | ) | 
           | 
        
      
 
 
      
        
          | dba_driver::get_table_quote  | 
          ( | 
           | ) | 
           | 
        
      
 
 
  
  
      
        
          | dba_driver::getdriver  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
abstract   | 
  
 
Return text name for db driver. 
This abstract function needs to be implemented in the real driver. 
 
 
      
        
          | dba_driver::install  | 
          ( | 
            | 
          $server,  | 
        
        
           | 
           | 
            | 
          $scheme,  | 
        
        
           | 
           | 
            | 
          $port,  | 
        
        
           | 
           | 
            | 
          $user,  | 
        
        
           | 
           | 
            | 
          $pass,  | 
        
        
           | 
           | 
            | 
          $db  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
      
        
          | dba_driver::optimize_table  | 
          ( | 
            | 
          $table | ) | 
           | 
        
      
 
 
      
        
          | dba_driver::pdo_set  | 
          ( | 
            | 
          $x | ) | 
           | 
        
      
 
 
Perform a DB query with the SQL statement $sql. 
This abstract function needs to be implemented in the real driver.
- Parameters
 - 
  
    | string | $sql | The SQL query to execute  | 
  
   
Referenced by optimize_table().
 
 
      
        
          | dba_driver::quote_interval  | 
          ( | 
            | 
          $txt | ) | 
           | 
        
      
 
 
      
        
          | dba_driver::unescapebin  | 
          ( | 
            | 
          $str | ) | 
           | 
        
      
 
 
      
        
          | dba_driver::$connected = false | 
        
      
 
 
      
        
          | dba_driver::$error = false | 
        
      
 
 
  
  
      
        
          | dba_driver::$pdo = array() | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following file: