protected function _setResourceName( $name )
	{
		$config = $this->_context->getConfig();

		if( $config->get( 'resource/' . $name ) === null ) {
			$this->_resourceName = $config->get( 'resource/default', 'db' );
		} else {
			$this->_resourceName = $name;
		}
	}
protected function _setResourceName( $name )
	{
		$config = $this->_context->getConfig();

		if( $config->get( 'resource/' . $name ) === null ) {
			$this->_resourceName = $config->get( 'resource/default', 'db' );
		} else {
			$this->_resourceName = $name;
		}
	}
protected function _setResourceName ( $ name ) { $ config = $ this -> _context -> getConfig ( ) ; if ( $ config -> get ( 'resource/' . $ name ) === null ) { $ this -> _resourceName = $ config -> get ( 'resource/default' , 'db' ) ; } else { $ this -> _resourceName = $ name ; } }
Sets the name of the database resource that should be used.

@param string $name Name of the resource
Sets the name of the database resource that should be used .