original_string: public static function getDistribution($distributionId)
  	{
  		if (!extension_loaded('openssl'))
  		{
  			self::__triggerError(sprintf("S3::getDistribution($distributionId): %s",
  			"CloudFront functionality requires SSL"), __FILE__, __LINE__);
  			return false;
  		}
  		$useSSL = self::$useSSL;
  
  		self::$useSSL = true; // CloudFront requires SSL
  		$rest = new S3Request('GET', '', '2010-11-01/distribution/'.$distributionId, 'cloudfront.amazonaws.com');
  		$rest = self::__getCloudFrontResponse($rest);
  
  		self::$useSSL = $useSSL;
  
  		if ($rest->error === false && $rest->code !== 200)
  			$rest->error = array('code' => $rest->code, 'message' => 'Unexpected HTTP status');
  		if ($rest->error !== false)
  		{
  			self::__triggerError(sprintf("S3::getDistribution($distributionId): [%s] %s",
  			$rest->error['code'], $rest->error['message']), __FILE__, __LINE__);
  			return false;
  		}
  		elseif ($rest->body instanceof SimpleXMLElement)
  		{
  			$dist = self::__parseCloudFrontDistributionConfig($rest->body);
  			$dist['hash'] = $rest->headers['hash'];
  			$dist['id'] = $distributionId;
  			return $dist;
  		}
  		return false;
  	}
code: public static function getDistribution($distributionId)
  	{
  		if (!extension_loaded('openssl'))
  		{
  			self::__triggerError(sprintf("S3::getDistribution($distributionId): %s",
  			"CloudFront functionality requires SSL"), __FILE__, __LINE__);
  			return false;
  		}
  		$useSSL = self::$useSSL;
  
  		self::$useSSL = true; // CloudFront requires SSL
  		$rest = new S3Request('GET', '', '2010-11-01/distribution/'.$distributionId, 'cloudfront.amazonaws.com');
  		$rest = self::__getCloudFrontResponse($rest);
  
  		self::$useSSL = $useSSL;
  
  		if ($rest->error === false && $rest->code !== 200)
  			$rest->error = array('code' => $rest->code, 'message' => 'Unexpected HTTP status');
  		if ($rest->error !== false)
  		{
  			self::__triggerError(sprintf("S3::getDistribution($distributionId): [%s] %s",
  			$rest->error['code'], $rest->error['message']), __FILE__, __LINE__);
  			return false;
  		}
  		elseif ($rest->body instanceof SimpleXMLElement)
  		{
  			$dist = self::__parseCloudFrontDistributionConfig($rest->body);
  			$dist['hash'] = $rest->headers['hash'];
  			$dist['id'] = $distributionId;
  			return $dist;
  		}
  		return false;
  	}
code_tokens: public static function getDistribution ( $ distributionId ) { if ( ! extension_loaded ( 'openssl' ) ) { self :: __triggerError ( sprintf ( "S3::getDistribution($distributionId): %s" , "CloudFront functionality requires SSL" ) , __FILE__ , __LINE__ ) ; return false ; } $ useSSL = self :: $ useSSL ; self :: $ useSSL = true ; // CloudFront requires SSL $ rest = new S3Request ( 'GET' , '' , '2010-11-01/distribution/' . $ distributionId , 'cloudfront.amazonaws.com' ) ; $ rest = self :: __getCloudFrontResponse ( $ rest ) ; self :: $ useSSL = $ useSSL ; if ( $ rest -> error === false && $ rest -> code !== 200 ) $ rest -> error = array ( 'code' => $ rest -> code , 'message' => 'Unexpected HTTP status' ) ; if ( $ rest -> error !== false ) { self :: __triggerError ( sprintf ( "S3::getDistribution($distributionId): [%s] %s" , $ rest -> error [ 'code' ] , $ rest -> error [ 'message' ] ) , __FILE__ , __LINE__ ) ; return false ; } elseif ( $ rest -> body instanceof SimpleXMLElement ) { $ dist = self :: __parseCloudFrontDistributionConfig ( $ rest -> body ) ; $ dist [ 'hash' ] = $ rest -> headers [ 'hash' ] ; $ dist [ 'id' ] = $ distributionId ; return $ dist ; } return false ; }
docstring: Get CloudFront distribution info
  
  @param string $distributionId Distribution ID from listDistributions()
  @return array | false
docstring_tokens: Get CloudFront distribution info