public function getConnStr($storeName, $podName = null)
    {
        if (array_key_exists($storeName,$this->dbConfig))
        {
            if(!$podName)
            {
                return $this->getConnStrForDataSource($this->dbConfig[$storeName]['data_source']);
            }
            $pods = $this->getPods($storeName);
            if(array_key_exists($podName, $pods))
            {
                return $this->getConnStrForDataSource($pods[$podName]['data_source']);
            }
            throw new \Tripod\Exceptions\ConfigException("Collection $podName does not exist for database $storeName");
        }
        else
        {
            throw new \Tripod\Exceptions\ConfigException("Database $storeName does not exist in configuration");
        }
    }
public function getConnStr($storeName, $podName = null)
    {
        if (array_key_exists($storeName,$this->dbConfig))
        {
            if(!$podName)
            {
                return $this->getConnStrForDataSource($this->dbConfig[$storeName]['data_source']);
            }
            $pods = $this->getPods($storeName);
            if(array_key_exists($podName, $pods))
            {
                return $this->getConnStrForDataSource($pods[$podName]['data_source']);
            }
            throw new \Tripod\Exceptions\ConfigException("Collection $podName does not exist for database $storeName");
        }
        else
        {
            throw new \Tripod\Exceptions\ConfigException("Database $storeName does not exist in configuration");
        }
    }
public function getConnStr ( $ storeName , $ podName = null ) { if ( array_key_exists ( $ storeName , $ this -> dbConfig ) ) { if ( ! $ podName ) { return $ this -> getConnStrForDataSource ( $ this -> dbConfig [ $ storeName ] [ 'data_source' ] ) ; } $ pods = $ this -> getPods ( $ storeName ) ; if ( array_key_exists ( $ podName , $ pods ) ) { return $ this -> getConnStrForDataSource ( $ pods [ $ podName ] [ 'data_source' ] ) ; } throw new \ Tripod \ Exceptions \ ConfigException ( "Collection $podName does not exist for database $storeName" ) ; } else { throw new \ Tripod \ Exceptions \ ConfigException ( "Database $storeName does not exist in configuration" ) ; } }
Returns the connection string for the supplied database name

@param string $storeName
@param string|null $podName
@throws \Tripod\Exceptions\ConfigException
@return string
Returns the connection string for the supplied database name