protected function _buildCloudUrl($bucket, $bucketPrefix = null, $cfDist = null) {
		$path = $this->getConfig('https') === true ? 'https://' : 'http://';
		if ($cfDist) {
			$path .= $cfDist;
		} else {
			if ($bucketPrefix) {
				$path .= $bucket . '.' . $this->_config['s3Url'];
			} else {
				$path .= $this->_config['s3Url'] . '/' . $bucket;
			}
		}

		return $path;
	}
protected function _buildCloudUrl($bucket, $bucketPrefix = null, $cfDist = null) {
		$path = $this->getConfig('https') === true ? 'https://' : 'http://';
		if ($cfDist) {
			$path .= $cfDist;
		} else {
			if ($bucketPrefix) {
				$path .= $bucket . '.' . $this->_config['s3Url'];
			} else {
				$path .= $this->_config['s3Url'] . '/' . $bucket;
			}
		}

		return $path;
	}
protected function _buildCloudUrl ( $ bucket , $ bucketPrefix = null , $ cfDist = null ) { $ path = $ this -> getConfig ( 'https' ) === true ? 'https://' : 'http://' ; if ( $ cfDist ) { $ path .= $ cfDist ; } else { if ( $ bucketPrefix ) { $ path .= $ bucket . '.' . $ this -> _config [ 's3Url' ] ; } else { $ path .= $ this -> _config [ 's3Url' ] . '/' . $ bucket ; } } return $ path ; }
Builds the cloud base URL for the given bucket and location.

@param string $bucket
@param string|null $bucketPrefix
@param string|null $cfDist
@return string
Builds the cloud base URL for the given bucket and location .