public static function getConnection($filter = ''){
		switch ($filter) {
			case 'host':
				return self::$_host;
				break;

			case 'port':
				return self::$_port;
				break;

			case 'dbname':
				return self::$_dbname;
				break;

			case 'user':
				return self::$_user;
				break;
			
			default:
				return self::$_pdo;
				break;
		}
	}
public static function getConnection($filter = ''){
		switch ($filter) {
			case 'host':
				return self::$_host;
				break;

			case 'port':
				return self::$_port;
				break;

			case 'dbname':
				return self::$_dbname;
				break;

			case 'user':
				return self::$_user;
				break;
			
			default:
				return self::$_pdo;
				break;
		}
	}
public static function getConnection ( $ filter = '' ) { switch ( $ filter ) { case 'host' : return self :: $ _host ; break ; case 'port' : return self :: $ _port ; break ; case 'dbname' : return self :: $ _dbname ; break ; case 'user' : return self :: $ _user ; break ; default : return self :: $ _pdo ; break ; } }
Get specific connection parameters. Unfortunately the password is used during the
connection phase and is not stored therefore not returnable.

@method getConnection

@param  string        $filter A database connection parameter (host, port, dbname, user).
If none is supplied, the PDO object is returned instead.

@return mixed                 A database connection parameter (host, port, dbname, user) value.
If none is supplied, the PDO object is returned instead.
Get specific connection parameters . Unfortunately the password is used during the connection phase and is not stored therefore not returnable .