src/Ubiquity/orm/DAO.php
public static function connect($dbType, $dbName, $serverName = '127.0.0.1', $port = '3306', $user = 'root', $password = '', $options = [], $cache = false) {
		self::$db = new Database ( $dbType, $dbName, $serverName, $port, $user, $password, $options, $cache );
		try {
			self::$db->connect ();
		} catch ( \Exception $e ) {
			Logger::error ( "DAO", $e->getMessage () );
			throw new DAOException ( $e->getMessage (), $e->getCode (), $e->getPrevious () );
		}
	}
public static function connect($dbType, $dbName, $serverName = '127.0.0.1', $port = '3306', $user = 'root', $password = '', $options = [], $cache = false) {
		self::$db = new Database ( $dbType, $dbName, $serverName, $port, $user, $password, $options, $cache );
		try {
			self::$db->connect ();
		} catch ( \Exception $e ) {
			Logger::error ( "DAO", $e->getMessage () );
			throw new DAOException ( $e->getMessage (), $e->getCode (), $e->getPrevious () );
		}
	}
public static function connect ( $ dbType , $ dbName , $ serverName = '127.0.0.1' , $ port = '3306' , $ user = 'root' , $ password = '' , $ options = [ ] , $ cache = false ) { self :: $ db = new Database ( $ dbType , $ dbName , $ serverName , $ port , $ user , $ password , $ options , $ cache ) ; try { self :: $ db -> connect ( ) ; } catch ( \ Exception $ e ) { Logger :: error ( "DAO" , $ e -> getMessage ( ) ) ; throw new DAOException ( $ e -> getMessage ( ) , $ e -> getCode ( ) , $ e -> getPrevious ( ) ) ; } }
Establishes the connection to the database using the past parameters

@param string $dbType
@param string $dbName
@param string $serverName
@param string $port
@param string $user
@param string $password
@param array $options
@param boolean $cache
Establishes the connection to the database using the past parameters