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_BatchStorageAbstract |
__construct(string $host= \Zend_Service_WindowsAzure_Storage::URL_DEV_TABLE
, 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
__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 stringcreateTable(string $tableName = ''
) : \Zend_Service_WindowsAzure_Storage_TableInstance
string
Table name
\Zend_Service_WindowsAzure_Exception |
---|
\Zend_Service_WindowsAzure_Storage_TableInstance
createTableIfNotExists(string $tableName = ''
)
string
Table name
\Zend_Service_WindowsAzure_Exception |
---|
deleteEntity(string $tableName= ''
, \Zend_Service_WindowsAzure_Storage_TableEntity $entity= null
, boolean $verifyEtag= false
)
string
Table name
\Zend_Service_WindowsAzure_Storage_TableEntity
Entity to delete
boolean
Verify etag of the entity (used for concurrency)
\Zend_Service_WindowsAzure_Exception |
---|
deleteTable(string $tableName = ''
)
string
Table name
\Zend_Service_WindowsAzure_Exception |
---|
getAccountName() : 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
getThrowExceptionOnMissingData()
insertEntity(string $tableName= ''
, \Zend_Service_WindowsAzure_Storage_TableEntity $entity= null
) : \Zend_Service_WindowsAzure_Storage_TableEntity
string
Table name
\Zend_Service_WindowsAzure_Storage_TableEntity
Entity to insert
\Zend_Service_WindowsAzure_Exception |
---|
\Zend_Service_WindowsAzure_Storage_TableEntity
isInBatch() : boolean
boolean
isValidMetadataName(string $metadataName = ''
) : boolean
string
Metadata name
boolean
isoDate(integer $timestamp = null
) : string
integer
string
listTables(string $nextTableName = ''
) : array
string
Next table name, used for listing tables when total amount of tables is > 1000.
\Zend_Service_WindowsAzure_Exception |
---|
array
mergeEntity(string $tableName= ''
, \Zend_Service_WindowsAzure_Storage_TableEntity $entity= null
, boolean $verifyEtag= false
, array $properties= array()
)
string
Table name
\Zend_Service_WindowsAzure_Storage_TableEntity
Entity to update
boolean
Verify etag of the entity (used for concurrency)
array
Properties to merge. All properties will be used when omitted.
\Zend_Service_WindowsAzure_Exception |
---|
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
retrieveEntities($tableName= ''
, string $filter= ''
, string $entityClass= 'Zend_Service_WindowsAzure_Storage_DynamicTableEntity'
, string $nextPartitionKey= null
, string $nextRowKey= null
) : array
string
Filter condition (not applied when $tableName is a Zend_Service_WindowsAzure_Storage_TableEntityQuery instance)
string
Entity class name
string
Next partition key, used for listing entities when total amount of entities is > 1000.
string
Next row key, used for listing entities when total amount of entities is > 1000.
\Zend_Service_WindowsAzure_Exception |
---|
array
Array of Zend_Service_WindowsAzure_Storage_TableEntityretrieveEntityById(string $tableName, string $partitionKey, string $rowKey, string $entityClass = 'Zend_Service_WindowsAzure_Storage_DynamicTableEntity'
) : \Zend_Service_WindowsAzure_Storage_TableEntity
string
Table name
string
Partition key
string
Row key
string
Entity class name*
\Zend_Service_WindowsAzure_Exception |
---|
\Zend_Service_WindowsAzure_Storage_TableEntity
select() : \Zend_Service_WindowsAzure_Storage_TableEntityQuery
\Zend_Service_WindowsAzure_Storage_TableEntityQuery
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
setThrowExceptionOnMissingData(boolean $value = true
)
boolean
startBatch() : \Zend_Service_WindowsAzure_Storage_Batch
\Zend_Service_WindowsAzure_Exception |
---|
\Zend_Service_WindowsAzure_Storage_Batch
tableExists(string $tableName = ''
) : boolean
string
Table name
boolean
updateEntity(string $tableName= ''
, \Zend_Service_WindowsAzure_Storage_TableEntity $entity= null
, boolean $verifyEtag= false
)
string
Table name
\Zend_Service_WindowsAzure_Storage_TableEntity
Entity to update
boolean
Verify etag of the entity (used for concurrency)
\Zend_Service_WindowsAzure_Exception |
---|
urlencode(string $value) : string
string
Value to encode
string
Encoded value_changeEntity(string $httpVerb= \Zend_Http_Client::PUT
, string $tableName= ''
, \Zend_Service_WindowsAzure_Storage_TableEntity $entity= null
, boolean $verifyEtag= false
)
string
HTTP verb to use (PUT = update, MERGE = merge)
string
Table name
\Zend_Service_WindowsAzure_Storage_TableEntity
Entity to update
boolean
Verify etag of the entity (used for concurrency)
\Zend_Service_WindowsAzure_Exception |
---|
_convertToDateTime(string $value = ''
) : \DateTime | boolean
string
The string value to parse
\DateTime
boolean
_convertToEdmDateTime(\DateTime $value) : string
\DateTime
string
_fillTemplate(string $templateText, array $variables = array()
) : string
string
Template text
array
Array containing key/value pairs
string
_generateAzureRepresentation(\Zend_Service_WindowsAzure_Storage_TableEntity $entity = null
) : string
\Zend_Service_WindowsAzure_Storage_TableEntity
string
_generateMetadataHeaders(array $metadata = array()
) : \HTTP
array
\HTTP
headers containing metadata_getErrorMessage(\Zend_Http_Response $response, string $alternativeError = 'Unknown error.'
) : string
\Zend_Http_Response
Repsonse
string
Alternative error message
string
_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
_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
_rfcDate() : string
string
$_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
$_throwExceptionOnMissingData : boolean
true
$_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"