public function getDb($db = null)
    {
        if ($db === null) {
            return $this->getDefaultDb();
        }

        if (isset($this->dbs[$db])) {
            return $this->dbs[$db];
        }

        throw new Exception\InvalidArgumentException(
            'A DB adapter was tried to retrieve, but was not configured'
        );
    }
public function getDb($db = null)
    {
        if ($db === null) {
            return $this->getDefaultDb();
        }

        if (isset($this->dbs[$db])) {
            return $this->dbs[$db];
        }

        throw new Exception\InvalidArgumentException(
            'A DB adapter was tried to retrieve, but was not configured'
        );
    }
public function getDb ( $ db = null ) { if ( $ db === null ) { return $ this -> getDefaultDb ( ) ; } if ( isset ( $ this -> dbs [ $ db ] ) ) { return $ this -> dbs [ $ db ] ; } throw new Exception \ InvalidArgumentException ( 'A DB adapter was tried to retrieve, but was not configured' ) ; }
Retrieve the specified database connection

@param  null|string|Zend_Db_Adapter_Abstract $db The adapter to retrieve.
Null to retrieve the default connection
@return Zend_Db_Adapter_Abstract
@throws Exception\InvalidArgumentException if the given parameter could not be found
Retrieve the specified database connection