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.
URL_DEV_BLOB = '127.0.0.1:10000'
Development storage URLS
URL_DEV_QUEUE = '127.0.0.1:10001'
URL_DEV_TABLE = '127.0.0.1:10002'
URL_CLOUD_BLOB = 'blob.core.windows.net'
Live storage URLS
URL_CLOUD_QUEUE = 'queue.core.windows.net'
URL_CLOUD_TABLE = 'table.core.windows.net'
RESOURCE_UNKNOWN = 'unknown'
Resource types
RESOURCE_CONTAINER = 'c'
RESOURCE_BLOB = 'b'
RESOURCE_TABLE = 't'
RESOURCE_ENTITY = 'e'
RESOURCE_QUEUE = 'q'
PREFIX_PROPERTIES = 'x-ms-prop-'
HTTP header prefixes
PREFIX_METADATA = 'x-ms-meta-'
PREFIX_STORAGE_HEADER = 'x-ms-'
string $_accountKey = ''
Account key for Windows Azure
string $_accountName = ''
Account name for Windows Azure
string $_apiVersion = '2009-09-19'
Current API version
Zend_Service_WindowsAzure_Credentials_CredentialsAbstract $_credentials = 'null'
Zend_Service_WindowsAzure_Credentials_CredentialsAbstract instance
string $_host = ''
Storage host name
Zend_Http_Client $_httpClientChannel = 'null'
Zend_Http_Client channel used for communication with REST services
string $_proxyCredentials = ''
Proxy credentials
int $_proxyPort = '80'
Proxy port
string $_proxyUrl = ''
Proxy url
Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $_retryPolicy = 'null'
Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract instance
boolean $_usePathStyleUri = 'false'
Use path-style URI's
boolean $_useProxy = 'false'
Use proxy?
__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
)
:
Creates a new Zend_Service_WindowsAzure_Storage instance
_generateMetadataHeaders(
array $metadata
=
array
)
:
HTTP
Generate metadata headers
_parseMetadataElement(
$element
=
null
)
:
array
Parse metadata XML
_parseMetadataHeaders(
array $headers
=
array
)
:
array
Parse metadata headers
_parseResponse(
Zend_Http_Response $response
=
null
)
:
object
Parse result from Zend_Http_Response
_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
createQueryStringFromArray(
array $queryString
)
:
string
Builds a query string from an array of elements
getAccountName(
)
:
string
Returns the Windows Azure account name
getBaseUrl(
)
:
string
Get base URL for creating requests
getCredentials(
)
:
Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
Get Zend_Service_WindowsAzure_Credentials_CredentialsAbstract instance
isValidMetadataName(
string $metadataName
)
:
boolean
Is valid metadata name?
isoDate(
int $timestamp
=
null
)
:
string
Generate ISO 8601 compliant date string in UTC time zone
setCredentials(
Zend_Service_WindowsAzure_Credentials_CredentialsAbstract $credentials
)
:
Set Zend_Service_WindowsAzure_Credentials_CredentialsAbstract instance
setHttpClientChannel(
Zend_Http_Client_Adapter_Interface|string $adapterInstance
=
Zend_Http_Client_Adapter_Proxy
)
:
Set the HTTP client channel to use
setProxy(
boolean $useProxy
=
false, string $proxyUrl, int $proxyPort
=
80, string $proxyCredentials
)
:
Set proxy
setRetryPolicy(
Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy
=
null
)
:
Set retry policy to use when making requests
urlencode(
string $value
)
:
string
URL encode function