[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Service/WindowsAzure/ -> Storage.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 507 lines (14 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Service_WindowsAzure_Storage:: (14 methods):
  __construct()
  setHttpClientChannel()
  setRetryPolicy()
  setProxy()
  getAccountName()
  getBaseUrl()
  setCredentials()
  getCredentials()
  _performRequest()
  _parseResponse()
  _generateMetadataHeaders()
  _parseMetadataHeaders()
  isoDate()
  urlencode()


Class: Zend_Service_WindowsAzure_Storage  - X-Ref


__construct($host = self::URL_DEV_BLOB,$accountName = Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_ACCOUNT,$accountKey = Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_KEY,$usePathStyleUri = false,Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy = null)   X-Ref
Creates a new Zend_Service_WindowsAzure_Storage instance

param: string $host Storage host name
param: string $accountName Account name for Windows Azure
param: string $accountKey Account key for Windows Azure
param: boolean $usePathStyleUri Use path-style URI's
param: Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy Retry policy to use when making requests

setHttpClientChannel($adapterInstance = 'Zend_Http_Client_Adapter_Proxy')   X-Ref
Set the HTTP client channel to use

param: Zend_Http_Client_Adapter_Interface|string $adapterInstance Adapter instance or adapter class name.

setRetryPolicy(Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy = null)   X-Ref
Set retry policy to use when making requests

param: Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy Retry policy to use when making requests

setProxy($useProxy = false, $proxyUrl = '', $proxyPort = 80, $proxyCredentials = '')   X-Ref
Set proxy

param: boolean $useProxy         Use proxy?
param: string  $proxyUrl         Proxy URL
param: int     $proxyPort        Proxy port
param: string  $proxyCredentials Proxy credentials

getAccountName()   X-Ref
Returns the Windows Azure account name

return: string

getBaseUrl()   X-Ref
Get base URL for creating requests

return: string

setCredentials(Zend_Service_WindowsAzure_Credentials_CredentialsAbstract $credentials)   X-Ref
Set Zend_Service_WindowsAzure_Credentials_CredentialsAbstract instance

param: Zend_Service_WindowsAzure_Credentials_CredentialsAbstract $credentials Zend_Service_WindowsAzure_Credentials_CredentialsAbstract instance to use for request signing.

getCredentials()   X-Ref
Get Zend_Service_WindowsAzure_Credentials_CredentialsAbstract instance

return: Zend_Service_WindowsAzure_Credentials_CredentialsAbstract

_performRequest($path = '/',$queryString = '',$httpVerb = Zend_Http_Client::GET,$headers = array()   X-Ref
Perform request using Zend_Http_Client channel

param: string $path Path
param: string $queryString Query string
param: string $httpVerb HTTP verb the request will use
param: array $headers x-ms headers to add
param: boolean $forTableStorage Is the request for table storage?
param: mixed $rawData Optional RAW HTTP data to be sent over the wire
param: string $resourceType Resource type
param: string $requiredPermission Required permission
return: Zend_Http_Response

_parseResponse(Zend_Http_Response $response = null)   X-Ref
Parse result from Zend_Http_Response

param: Zend_Http_Response $response Response from HTTP call
return: object

_generateMetadataHeaders($metadata = array()   X-Ref
Generate metadata headers

param: array $metadata
return: HTTP headers containing metadata

_parseMetadataHeaders($headers = array()   X-Ref
Parse metadata errors

param: array $headers HTTP headers containing metadata
return: array

isoDate($timestamp = null)   X-Ref
Generate ISO 8601 compliant date string in UTC time zone

param: int $timestamp
return: string

urlencode($value)   X-Ref
URL encode function

param: string $value Value to encode
return: string        Encoded value



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1