protected function _buildCloudFrontDistributionUrl($protocol, $image, $bucket, $bucketPrefix = null, $cfDist = null) {
		$path = $protocol . '://';
		if (is_string($cfDist)) {
			$path .= $cfDist;
		} else {
			if ($bucketPrefix) {
				$path .= $bucket . '.s3.amazonaws.com';
			} else {
				$path .= 's3.amazonaws.com/' . $bucket;
			}
		}
		$path .= $image;

		return $path;
	}
protected function _buildCloudFrontDistributionUrl($protocol, $image, $bucket, $bucketPrefix = null, $cfDist = null) {
		$path = $protocol . '://';
		if (is_string($cfDist)) {
			$path .= $cfDist;
		} else {
			if ($bucketPrefix) {
				$path .= $bucket . '.s3.amazonaws.com';
			} else {
				$path .= 's3.amazonaws.com/' . $bucket;
			}
		}
		$path .= $image;

		return $path;
	}
protected function _buildCloudFrontDistributionUrl ( $ protocol , $ image , $ bucket , $ bucketPrefix = null , $ cfDist = null ) { $ path = $ protocol . '://' ; if ( is_string ( $ cfDist ) ) { $ path .= $ cfDist ; } else { if ( $ bucketPrefix ) { $ path .= $ bucket . '.s3.amazonaws.com' ; } else { $ path .= 's3.amazonaws.com/' . $ bucket ; } } $ path .= $ image ; return $ path ; }
Builds an url to serve content from cloudfront

@param string $protocol
@param string $image
@param string $bucket
@param string null $bucketPrefix
@param string $cfDist
@param bool $bucketPrefix
@return string
Builds an url to serve content from cloudfront