Moodle  2.2.1
http://www.collinsharper.com
Zend_Service_WindowsAzure_Storage Class Reference
Inheritance diagram for Zend_Service_WindowsAzure_Storage:

Public Member Functions

 __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)
 setHttpClientChannel ($adapterInstance= 'Zend_Http_Client_Adapter_Proxy')
 setRetryPolicy (Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy=null)
 setProxy ($useProxy=false, $proxyUrl= '', $proxyPort=80, $proxyCredentials= '')
 getAccountName ()
 getBaseUrl ()
 setCredentials (Zend_Service_WindowsAzure_Credentials_CredentialsAbstract $credentials)
 getCredentials ()
 isoDate ($timestamp=null)

Static Public Member Functions

static urlencode ($value)

Data Fields

const URL_DEV_BLOB = "127.0.0.1:10000"
const URL_DEV_QUEUE = "127.0.0.1:10001"
const URL_DEV_TABLE = "127.0.0.1:10002"
const URL_CLOUD_BLOB = "blob.core.windows.net"
const URL_CLOUD_QUEUE = "queue.core.windows.net"
const URL_CLOUD_TABLE = "table.core.windows.net"
const RESOURCE_UNKNOWN = "unknown"
const RESOURCE_CONTAINER = "c"
const RESOURCE_BLOB = "b"
const RESOURCE_TABLE = "t"
const RESOURCE_ENTITY = "e"
const RESOURCE_QUEUE = "q"

Protected Member Functions

 _performRequest ($path= '/', $queryString= '', $httpVerb=Zend_Http_Client::GET, $headers=array(), $forTableStorage=false, $rawData=null, $resourceType=Zend_Service_WindowsAzure_Storage::RESOURCE_UNKNOWN, $requiredPermission=Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_READ)
 _parseResponse (Zend_Http_Response $response=null)
 _generateMetadataHeaders ($metadata=array())
 _parseMetadataHeaders ($headers=array())

Protected Attributes

 $_apiVersion = '2009-04-14'
 $_host = ''
 $_accountName = ''
 $_accountKey = ''
 $_usePathStyleUri = false
 $_credentials = null
 $_retryPolicy = null
 $_httpClientChannel = null
 $_useProxy = false
 $_proxyUrl = ''
 $_proxyPort = 80
 $_proxyCredentials = ''

Detailed Description

Definition at line 60 of file Storage.php.


Constructor & Destructor Documentation

Creates a new Zend_Service_WindowsAzure_Storage instance

Parameters:
string$hostStorage host name
string$accountNameAccount name for Windows Azure
string$accountKeyAccount key for Windows Azure
boolean$usePathStyleUriUse path-style URI's
Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract$retryPolicyRetry policy to use when making requests

Reimplemented in Zend_Service_WindowsAzure_Storage_Blob, Zend_Service_WindowsAzure_Storage_Table, and Zend_Service_WindowsAzure_Storage_Queue.

Definition at line 179 of file Storage.php.

Here is the call graph for this function:


Member Function Documentation

_generateMetadataHeaders ( metadata = array()) [protected]

Generate metadata headers

Parameters:
array$metadata
Returns:
HTTP headers containing metadata

Definition at line 436 of file Storage.php.

Here is the caller graph for this function:

_parseMetadataHeaders ( headers = array()) [protected]

Parse metadata errors

Parameters:
array$headersHTTP headers containing metadata
Returns:
array

Definition at line 460 of file Storage.php.

Here is the caller graph for this function:

_parseResponse ( Zend_Http_Response response = null) [protected]

Parse result from Zend_Http_Response

Parameters:
Zend_Http_Response$responseResponse from HTTP call
Returns:
object
Exceptions:
Zend_Service_WindowsAzure_Exception

Definition at line 407 of file Storage.php.

Here is the caller graph for this function:

_performRequest ( path = '/',
queryString = '',
httpVerb = Zend_Http_Client::GET,
headers = array(),
forTableStorage = false,
rawData = null,
resourceType = Zend_Service_WindowsAzure_Storage::RESOURCE_UNKNOWN,
requiredPermission = Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_READ 
) [protected]

Perform request using Zend_Http_Client channel

Parameters:
string$pathPath
string$queryStringQuery string
string$httpVerbHTTP verb the request will use
array$headersx-ms headers to add
boolean$forTableStorageIs the request for table storage?
mixed$rawDataOptional RAW HTTP data to be sent over the wire
string$resourceTypeResource type
string$requiredPermissionRequired permission
Returns:
Zend_Http_Response

Definition at line 344 of file Storage.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Returns the Windows Azure account name

Returns:
string

Definition at line 289 of file Storage.php.

Get base URL for creating requests

Returns:
string

Definition at line 299 of file Storage.php.

Here is the caller graph for this function:

isoDate ( timestamp = null)

Generate ISO 8601 compliant date string in UTC time zone

Parameters:
int$timestamp
Returns:
string

Definition at line 483 of file Storage.php.

Here is the caller graph for this function:

Set the HTTP client channel to use

Parameters:
Zend_Http_Client_Adapter_Interface | string$adapterInstanceAdapter instance or adapter class name.

Definition at line 230 of file Storage.php.

setProxy ( useProxy = false,
proxyUrl = '',
proxyPort = 80,
proxyCredentials = '' 
)

Set proxy

Parameters:
boolean$useProxyUse proxy?
string$proxyUrlProxy URL
int$proxyPortProxy port
string$proxyCredentialsProxy credentials

Definition at line 256 of file Storage.php.

Set retry policy to use when making requests

Parameters:
Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract$retryPolicyRetry policy to use when making requests

Definition at line 240 of file Storage.php.

Here is the call graph for this function:

static urlencode ( value) [static]

URL encode function

Parameters:
string$valueValue to encode
Returns:
string Encoded value

Definition at line 503 of file Storage.php.

Here is the caller graph for this function:


Field Documentation

$_accountKey = '' [protected]

Definition at line 112 of file Storage.php.

$_accountName = '' [protected]

Definition at line 105 of file Storage.php.

$_apiVersion = '2009-04-14' [protected]

Definition at line 91 of file Storage.php.

$_credentials = null [protected]

Definition at line 126 of file Storage.php.

$_host = '' [protected]

Definition at line 98 of file Storage.php.

$_httpClientChannel = null [protected]

Definition at line 140 of file Storage.php.

$_proxyCredentials = '' [protected]

Definition at line 168 of file Storage.php.

$_proxyPort = 80 [protected]

Definition at line 161 of file Storage.php.

$_proxyUrl = '' [protected]

Definition at line 154 of file Storage.php.

$_retryPolicy = null [protected]

Definition at line 133 of file Storage.php.

$_usePathStyleUri = false [protected]

Definition at line 119 of file Storage.php.

$_useProxy = false [protected]

Definition at line 147 of file Storage.php.

const RESOURCE_BLOB = "b"

Definition at line 81 of file Storage.php.

const RESOURCE_CONTAINER = "c"

Definition at line 80 of file Storage.php.

const RESOURCE_ENTITY = "e"

Definition at line 83 of file Storage.php.

const RESOURCE_QUEUE = "q"

Definition at line 84 of file Storage.php.

const RESOURCE_TABLE = "t"

Definition at line 82 of file Storage.php.

const RESOURCE_UNKNOWN = "unknown"

Resource types

Definition at line 79 of file Storage.php.

const URL_CLOUD_BLOB = "blob.core.windows.net"

Live storage URLS

Definition at line 72 of file Storage.php.

const URL_CLOUD_QUEUE = "queue.core.windows.net"

Definition at line 73 of file Storage.php.

const URL_CLOUD_TABLE = "table.core.windows.net"

Definition at line 74 of file Storage.php.

const URL_DEV_BLOB = "127.0.0.1:10000"

Development storage URLS

Definition at line 65 of file Storage.php.

const URL_DEV_QUEUE = "127.0.0.1:10001"

Definition at line 66 of file Storage.php.

const URL_DEV_TABLE = "127.0.0.1:10002"

Definition at line 67 of file Storage.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations