Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

__construct(
string $host
=
self, string $accountName
=
Zend_Service_WindowsAzure_Credentials_CredentialsAbstract, string $accountKey
=
Zend_Service_WindowsAzure_Credentials_CredentialsAbstract, boolean $usePathStyleUri
=
false, \Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy
=
null
)
:
void
Creates a new Zend_Service_WindowsAzure_Storage instance
Inherited from: \Zend_Service_WindowsAzure_Storage::__construct()Name | Type | Description |
---|---|---|
$host | string | Storage host name |
$accountName | string | Account name for Windows Azure |
$accountKey | string | Account key for Windows Azure |
$usePathStyleUri | boolean | Use path-style URI's |
$retryPolicy | \Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract | Retry policy to use when making requests |

_generateMetadataHeaders(
array $metadata
=
array
)
:
\HTTP
Generate metadata headers
Inherited from: \Zend_Service_WindowsAzure_Storage::_generateMetadataHeaders()Name | Type | Description |
---|---|---|
$metadata | array |
Type | Description |
---|---|
\HTTP | headers containing metadata |

_parseMetadataElement(
$element
=
null
)
:
array
Parse metadata XML
Inherited from: \Zend_Service_WindowsAzure_Storage::_parseMetadataElement()Name | Type | Description |
---|---|---|
$element |
Type | Description |
---|---|
array |

_parseMetadataHeaders(
array $headers
=
array
)
:
array
Parse metadata headers
Inherited from: \Zend_Service_WindowsAzure_Storage::_parseMetadataHeaders()Name | Type | Description |
---|---|---|
$headers | array | HTTP headers containing metadata |
Type | Description |
---|---|
array |

_parseResponse(
\Zend_Http_Response $response
=
null
)
:
object
Parse result from Zend_Http_Response
Inherited from: \Zend_Service_WindowsAzure_Storage::_parseResponse()Name | Type | Description |
---|---|---|
$response | \Zend_Http_Response | Response from HTTP call |
Type | Description |
---|---|
object |
Exception | Description |
---|---|
\Zend_Service_WindowsAzure_Exception |

_performRequest(
string $path
=
/, string $queryString, string $httpVerb
=
Zend_Http_Client, array $headers
=
array, boolean $forTableStorage
=
false, mixed $rawData
=
null, string $resourceType
=
Zend_Service_WindowsAzure_Storage, string $requiredPermission
=
Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
)
:
\Zend_Http_Response
Perform request using Zend_Http_Client channel
Inherited from: \Zend_Service_WindowsAzure_Storage::_performRequest()Name | Type | Description |
---|---|---|
$path | string | Path |
$queryString | string | Query string |
$httpVerb | string | HTTP verb the request will use |
$headers | array | x-ms headers to add |
$forTableStorage | boolean | Is the request for table storage? |
$rawData | mixed | Optional RAW HTTP data to be sent over the wire |
$resourceType | string | Resource type |
$requiredPermission | string | Required permission |
Type | Description |
---|---|
\Zend_Http_Response |

createQueryStringFromArray(
array $queryString
)
:
string
Builds a query string from an array of elements
Inherited from: \Zend_Service_WindowsAzure_Storage::createQueryStringFromArray()Name | Type | Description |
---|---|---|
$queryString | array | Array of elements |
Type | Description |
---|---|
string | Assembled query string |

getAccountName(
)
:
string
Returns the Windows Azure account name
Inherited from: \Zend_Service_WindowsAzure_Storage::getAccountName()Type | Description |
---|---|
string |

getBaseUrl(
)
:
string
Get base URL for creating requests
Inherited from: \Zend_Service_WindowsAzure_Storage::getBaseUrl()Type | Description |
---|---|
string |

getCredentials(
)
:
\Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
Get Zend_Service_WindowsAzure_Credentials_CredentialsAbstract instance
Inherited from: \Zend_Service_WindowsAzure_Storage::getCredentials()Type | Description |
---|---|
\Zend_Service_WindowsAzure_Credentials_CredentialsAbstract |

getCurrentBatch(
)
:
\Zend_Service_WindowsAzure_Storage_Batch
Get current batch
Type | Description |
---|---|
\Zend_Service_WindowsAzure_Storage_Batch |

getHttpClientChannel(
)
:
\Zend_Http_Client_Adapter_Interface
Retrieve HTTP client channel
Inherited from: \Zend_Service_WindowsAzure_Storage::getHttpClientChannel()Type | Description |
---|---|
\Zend_Http_Client_Adapter_Interface |

isValidMetadataName(
string $metadataName
)
:
boolean
Is valid metadata name?
Inherited from: \Zend_Service_WindowsAzure_Storage::isValidMetadataName()Name | Type | Description |
---|---|---|
$metadataName | string | Metadata name |
Type | Description |
---|---|
boolean |

isoDate(
int $timestamp
=
null
)
:
string
Generate ISO 8601 compliant date string in UTC time zone
Inherited from: \Zend_Service_WindowsAzure_Storage::isoDate()Name | Type | Description |
---|---|---|
$timestamp | int |
Type | Description |
---|---|
string |

performBatch(
array $operations
=
array, boolean $forTableStorage
=
false, boolean $isSingleSelect
=
false, string $resourceType
=
Zend_Service_WindowsAzure_Storage, string $requiredPermission
=
Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
)
:
\Zend_Http_Response
Perform batch using Zend_Http_Client channel, combining all batch operations into one request
Name | Type | Description |
---|---|---|
$operations | array | Operations in batch |
$forTableStorage | boolean | Is the request for table storage? |
$isSingleSelect | boolean | Is the request a single select statement? |
$resourceType | string | Resource type |
$requiredPermission | string | Required permission |
Type | Description |
---|---|
\Zend_Http_Response |

setCredentials(
\Zend_Service_WindowsAzure_Credentials_CredentialsAbstract $credentials
)
:
void
Set Zend_Service_WindowsAzure_Credentials_CredentialsAbstract instance
Inherited from: \Zend_Service_WindowsAzure_Storage::setCredentials()Name | Type | Description |
---|---|---|
$credentials | \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract | Zend_Service_WindowsAzure_Credentials_CredentialsAbstract instance to use for request signing. |

setCurrentBatch(
\Zend_Service_WindowsAzure_Storage_Batch $batch
=
null
)
:
void
Set current batch
Name | Type | Description |
---|---|---|
$batch | \Zend_Service_WindowsAzure_Storage_Batch | Current batch |
Exception | Description |
---|---|
\Zend_Service_WindowsAzure_Exception |

setHttpClientChannel(
\Zend_Http_Client_Adapter_Interface|string $adapterInstance
=
Zend_Http_Client_Adapter_Proxy
)
:
void
Set the HTTP client channel to use
Inherited from: \Zend_Service_WindowsAzure_Storage::setHttpClientChannel()Name | Type | Description |
---|---|---|
$adapterInstance | \Zend_Http_Client_Adapter_Interface|string | Adapter instance or adapter class name. |

setProxy(
boolean $useProxy
=
false, string $proxyUrl, int $proxyPort
=
80, string $proxyCredentials
)
:
void
Set proxy
Inherited from: \Zend_Service_WindowsAzure_Storage::setProxy()Name | Type | Description |
---|---|---|
$useProxy | boolean | Use proxy? |
$proxyUrl | string | Proxy URL |
$proxyPort | int | Proxy port |
$proxyCredentials | string | Proxy credentials |

setRetryPolicy(
\Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy
=
null
)
:
void
Set retry policy to use when making requests
Inherited from: \Zend_Service_WindowsAzure_Storage::setRetryPolicy()Name | Type | Description |
---|---|---|
$retryPolicy | \Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract | Retry policy to use when making requests |

startBatch(
)
:
\Zend_Service_WindowsAzure_Storage_Batch
Starts a new batch operation set
Type | Description |
---|---|
\Zend_Service_WindowsAzure_Storage_Batch |
Exception | Description |
---|---|
\Zend_Service_WindowsAzure_Exception |