original_string: public static function getAuthenticatedURL($bucket, $uri, $lifetime, $hostBucket = false, $https = false)
  	{
  		$expires = self::__getTime() + $lifetime;
  		$uri = str_replace(array('%2F', '%2B'), array('/', '+'), rawurlencode($uri));
  		return sprintf(($https ? 'https' : 'http').'://%s/%s?AWSAccessKeyId=%s&Expires=%u&Signature=%s',
  		// $hostBucket ? $bucket : $bucket.'.s3.amazonaws.com', $uri, self::$__accessKey, $expires,
  		$hostBucket ? $bucket : self::$endpoint.'/'.$bucket, $uri, self::$__accessKey, $expires,
  		urlencode(self::__getHash("GET\n\n\n{$expires}\n/{$bucket}/{$uri}")));
  	}
code: public static function getAuthenticatedURL($bucket, $uri, $lifetime, $hostBucket = false, $https = false)
  	{
  		$expires = self::__getTime() + $lifetime;
  		$uri = str_replace(array('%2F', '%2B'), array('/', '+'), rawurlencode($uri));
  		return sprintf(($https ? 'https' : 'http').'://%s/%s?AWSAccessKeyId=%s&Expires=%u&Signature=%s',
  		// $hostBucket ? $bucket : $bucket.'.s3.amazonaws.com', $uri, self::$__accessKey, $expires,
  		$hostBucket ? $bucket : self::$endpoint.'/'.$bucket, $uri, self::$__accessKey, $expires,
  		urlencode(self::__getHash("GET\n\n\n{$expires}\n/{$bucket}/{$uri}")));
  	}
code_tokens: public static function getAuthenticatedURL ( $ bucket , $ uri , $ lifetime , $ hostBucket = false , $ https = false ) { $ expires = self :: __getTime ( ) + $ lifetime ; $ uri = str_replace ( array ( '%2F' , '%2B' ) , array ( '/' , '+' ) , rawurlencode ( $ uri ) ) ; return sprintf ( ( $ https ? 'https' : 'http' ) . '://%s/%s?AWSAccessKeyId=%s&Expires=%u&Signature=%s' , // $hostBucket ? $bucket : $bucket.'.s3.amazonaws.com', $uri, self::$__accessKey, $expires, $ hostBucket ? $ bucket : self :: $ endpoint . '/' . $ bucket , $ uri , self :: $ __accessKey , $ expires , urlencode ( self :: __getHash ( "GET\n\n\n{$expires}\n/{$bucket}/{$uri}" ) ) ) ; }
docstring: Get a query string authenticated URL
  
  @param string $bucket Bucket name
  @param string $uri Object URI
  @param integer $lifetime Lifetime in seconds
  @param boolean $hostBucket Use the bucket name as the hostname
  @param boolean $https Use HTTPS ($hostBucket should be false for SSL verification)
  @return string
docstring_tokens: Get a query string authenticated URL