src/xPDO/xPDO.php
public function connect($driverOptions= array (), array $options= array()) {
        $connected = false;
        $this->getConnection($options);
        if ($this->connection instanceof xPDOConnection) {
            $connected = $this->connection->connect($driverOptions);
            if ($connected) {
                $this->pdo =& $this->connection->pdo;
            }
        }
        return $connected;
    }
public function connect($driverOptions= array (), array $options= array()) {
        $connected = false;
        $this->getConnection($options);
        if ($this->connection instanceof xPDOConnection) {
            $connected = $this->connection->connect($driverOptions);
            if ($connected) {
                $this->pdo =& $this->connection->pdo;
            }
        }
        return $connected;
    }
public function connect ( $ driverOptions = array ( ) , array $ options = array ( ) ) { $ connected = false ; $ this -> getConnection ( $ options ) ; if ( $ this -> connection instanceof xPDOConnection ) { $ connected = $ this -> connection -> connect ( $ driverOptions ) ; if ( $ connected ) { $ this -> pdo = & $ this -> connection -> pdo ; } } return $ connected ; }
Get or create a PDO connection to a database specified in the configuration.

@param array $driverOptions An optional array of driver options to use
when creating the connection.
@param array $options An array of xPDO options for the connection.
@return boolean Returns true if the PDO connection was created successfully.
Get or create a PDO connection to a database specified in the configuration .