src/ORM/Connect/Database.php
public function connect($parameters)
    {
        // Ensure that driver is available (required by PDO)
        if (empty($parameters['driver'])) {
            $parameters['driver'] = $this->getDatabaseServer();
        }

        // Notify connector of parameters
        $this->connector->connect($parameters);

        // SS_Database subclass maintains responsibility for selecting database
        // once connected in order to correctly handle schema queries about
        // existence of database, error handling at the correct level, etc
        if (!empty($parameters['database'])) {
            $this->selectDatabase($parameters['database'], false, false);
        }
    }
public function connect($parameters)
    {
        // Ensure that driver is available (required by PDO)
        if (empty($parameters['driver'])) {
            $parameters['driver'] = $this->getDatabaseServer();
        }

        // Notify connector of parameters
        $this->connector->connect($parameters);

        // SS_Database subclass maintains responsibility for selecting database
        // once connected in order to correctly handle schema queries about
        // existence of database, error handling at the correct level, etc
        if (!empty($parameters['database'])) {
            $this->selectDatabase($parameters['database'], false, false);
        }
    }
public function connect ( $ parameters ) { // Ensure that driver is available (required by PDO) if ( empty ( $ parameters [ 'driver' ] ) ) { $ parameters [ 'driver' ] = $ this -> getDatabaseServer ( ) ; } // Notify connector of parameters $ this -> connector -> connect ( $ parameters ) ; // SS_Database subclass maintains responsibility for selecting database // once connected in order to correctly handle schema queries about // existence of database, error handling at the correct level, etc if ( ! empty ( $ parameters [ 'database' ] ) ) { $ this -> selectDatabase ( $ parameters [ 'database' ] , false , false ) ; } }
Instruct the database to generate a live connection

@param array $parameters An map of parameters, which should include:
- server: The server, eg, localhost
- username: The username to log on with
- password: The password to log on with
- database: The database to connect to
- charset: The character set to use. Defaults to utf8
- timezone: (optional) The timezone offset. For example: +12:00, "Pacific/Auckland", or "SYSTEM"
- driver: (optional) Driver name
Instruct the database to generate a live connection