public function getDefaultDb($justPickOne = true)
    {
        if (null !== $this->defaultDb) {
            return $this->defaultDb;
        }

        if ($justPickOne) {
            return reset($this->dbs); // Return first db in db pool
        }

        return null;
    }
public function getDefaultDb($justPickOne = true)
    {
        if (null !== $this->defaultDb) {
            return $this->defaultDb;
        }

        if ($justPickOne) {
            return reset($this->dbs); // Return first db in db pool
        }

        return null;
    }
public function getDefaultDb ( $ justPickOne = true ) { if ( null !== $ this -> defaultDb ) { return $ this -> defaultDb ; } if ( $ justPickOne ) { return reset ( $ this -> dbs ) ; // Return first db in db pool } return null ; }
Get the default db connection

@param  boolean $justPickOne If true, a random (the first one in the stack)
connection is returned if no default was set.
If false, null is returned if no default was set.
@return null|Zend_Db_Adapter_Abstract
Get the default db connection