category | Zend |
---|---|
package | Zend_Service_WindowsAzure |
subpackage | Storage |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Service_WindowsAzure_Storage |
__construct(string $host= self::URL_DEV_BLOB
, string $accountName= \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_ACCOUNT
, string $accountKey= \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::DEVSTORE_KEY
, boolean $usePathStyleUri= false
, \Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy= null
)
string
Storage host name
string
Account name for Windows Azure
string
Account key for Windows Azure
boolean
Use path-style URI's
\Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract
Retry policy to use when making requests
createQueryStringFromArray($queryString) : string
string
Assembled query stringgetAccountName() : string
string
getBaseUrl() : string
string
getCredentials() : \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
\Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
getCurrentBatch() : \Zend_Service_WindowsAzure_Storage_Batch
\Zend_Service_WindowsAzure_Storage_Batch
getHttpClientChannel() : \Zend_Http_Client_Adapter_Interface
\Zend_Http_Client_Adapter_Interface
isInBatch() : boolean
boolean
isValidMetadataName(string $metadataName = ''
) : boolean
string
Metadata name
boolean
isoDate(integer $timestamp = null
) : string
integer
string
performBatch(array $operations= array()
, boolean $forTableStorage= false
, boolean $isSingleSelect= false
, string $resourceType= \Zend_Service_WindowsAzure_Storage::RESOURCE_UNKNOWN
, string $requiredPermission= \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_READ
) : \Zend_Http_Response
array
Operations in batch
boolean
Is the request for table storage?
boolean
Is the request a single select statement?
string
Resource type
string
Required permission
\Zend_Http_Response
setCredentials(\Zend_Service_WindowsAzure_Credentials_CredentialsAbstract $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
)
\Zend_Service_WindowsAzure_Storage_Batch
Current batch
\Zend_Service_WindowsAzure_Exception |
---|
setHttpClientChannel(\Zend_Http_Client_Adapter_Interface|string $adapterInstance = 'Zend_Http_Client_Adapter_Proxy'
)
\Zend_Http_Client_Adapter_Interface
string
Adapter instance or adapter class name.
setProxy(boolean $useProxy= false
, string $proxyUrl= ''
, integer $proxyPort= 80
, string $proxyCredentials= ''
)
boolean
Use proxy?
string
Proxy URL
integer
Proxy port
string
Proxy credentials
setRetryPolicy(\Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy = null
)
\Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract
Retry policy to use when making requests
startBatch() : \Zend_Service_WindowsAzure_Storage_Batch
\Zend_Service_WindowsAzure_Exception |
---|
\Zend_Service_WindowsAzure_Storage_Batch
urlencode(string $value) : string
string
Value to encode
string
Encoded value_generateMetadataHeaders(array $metadata = array()
) : \HTTP
array
\HTTP
headers containing metadata_parseMetadataElement($element = null
) : array
array
_parseMetadataHeaders(array $headers = array()
) : array
array
HTTP headers containing metadata
array
_parseResponse(\Zend_Http_Response $response = null
) : object
\Zend_Http_Response
Response from HTTP call
\Zend_Service_WindowsAzure_Exception |
---|
object
_performRequest(string $path= '/'
, string $queryString= ''
, string $httpVerb= \Zend_Http_Client::GET
, array $headers= array()
, boolean $forTableStorage= false
, mixed $rawData= null
, string $resourceType= \Zend_Service_WindowsAzure_Storage::RESOURCE_UNKNOWN
, string $requiredPermission= \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract::PERMISSION_READ
) : \Zend_Http_Response
string
Path
string
Query string
string
HTTP verb the request will use
array
x-ms headers to add
boolean
Is the request for table storage?
mixed
Optional RAW HTTP data to be sent over the wire
string
Resource type
string
Required permission
\Zend_Http_Response
$_accountKey : string
''
$_accountName : string
''
$_apiVersion : string
'2009-09-19'
$_credentials : \Zend_Service_WindowsAzure_Credentials_CredentialsAbstract
null
$_currentBatch : \Zend_Service_WindowsAzure_Storage_Batch
null
$_host : string
''
$_httpClientChannel : \Zend_Http_Client
null
$_proxyCredentials : string
''
$_proxyPort : integer
80
$_proxyUrl : string
''
$_retryPolicy : \Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract
null
$_usePathStyleUri : boolean
false
$_useProxy : boolean
false
PREFIX_METADATA = "x-ms-meta-"
PREFIX_PROPERTIES = "x-ms-prop-"
PREFIX_STORAGE_HEADER = "x-ms-"
RESOURCE_BLOB = "b"
RESOURCE_CONTAINER = "c"
RESOURCE_ENTITY = "e"
RESOURCE_QUEUE = "q"
RESOURCE_TABLE = "t"
RESOURCE_UNKNOWN = "unknown"
URL_CLOUD_BLOB = "blob.core.windows.net"
URL_CLOUD_QUEUE = "queue.core.windows.net"
URL_CLOUD_TABLE = "table.core.windows.net"
URL_DEV_BLOB = "127.0.0.1:10000"
URL_DEV_QUEUE = "127.0.0.1:10001"
URL_DEV_TABLE = "127.0.0.1:10002"