src/xPDO/xPDO.php
public function getDriver() {
        if ($this->driver === null || !$this->driver instanceof Om\xPDODriver) {
            $driverClass = '\\xPDO\\Om\\' . $this->config['dbtype'] . '\\xPDODriver';
            $this->driver= new $driverClass($this);
            if (!$this->driver) {
                $this->log(xPDO::LOG_LEVEL_ERROR, "Could not load xPDODriver class for the {$this->config['dbtype']} PDO driver.");
            }
        }
        return $this->driver;
    }
public function getDriver() {
        if ($this->driver === null || !$this->driver instanceof Om\xPDODriver) {
            $driverClass = '\\xPDO\\Om\\' . $this->config['dbtype'] . '\\xPDODriver';
            $this->driver= new $driverClass($this);
            if (!$this->driver) {
                $this->log(xPDO::LOG_LEVEL_ERROR, "Could not load xPDODriver class for the {$this->config['dbtype']} PDO driver.");
            }
        }
        return $this->driver;
    }
public function getDriver ( ) { if ( $ this -> driver === null || ! $ this -> driver instanceof Om \ xPDODriver ) { $ driverClass = '\\xPDO\\Om\\' . $ this -> config [ 'dbtype' ] . '\\xPDODriver' ; $ this -> driver = new $ driverClass ( $ this ) ; if ( ! $ this -> driver ) { $ this -> log ( xPDO :: LOG_LEVEL_ERROR , "Could not load xPDODriver class for the {$this->config['dbtype']} PDO driver." ) ; } } return $ this -> driver ; }
Gets the driver class for this xPDO connection.

The driver class provides baseline data and operations for a specific database driver.

@return Om\xPDODriver|null An xPDODriver instance for the xPDO connection, or null
if a driver class can not be instantiated.
Gets the driver class for this xPDO connection .