Zend Framework
1.12
|
Static Public Member Functions | |
static | urlencode ($value) |
URL encode function. | |
static | isValidMetadataName ($metadataName= '') |
Is valid metadata name? | |
static | createQueryStringFromArray ($queryString) |
Builds a query string from an array of elements. | |
Public Attributes | |
const | URL_DEV_BLOB = "127.0.0.1:10000" |
Development storage URLS. | |
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" |
Live storage URLS. | |
const | URL_CLOUD_QUEUE = "queue.core.windows.net" |
const | URL_CLOUD_TABLE = "table.core.windows.net" |
const | RESOURCE_UNKNOWN = "unknown" |
Resource types. | |
const | RESOURCE_CONTAINER = "c" |
const | RESOURCE_BLOB = "b" |
const | RESOURCE_TABLE = "t" |
const | RESOURCE_ENTITY = "e" |
const | RESOURCE_QUEUE = "q" |
const | PREFIX_PROPERTIES = "x-ms-prop-" |
HTTP header prefixes. | |
const | PREFIX_METADATA = "x-ms-meta-" |
const | PREFIX_STORAGE_HEADER = "x-ms-" |
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) | |
Perform request using Zend_Http_Client channel. | |
_parseResponse (Zend_Http_Response $response=null) | |
Parse result from Zend_Http_Response. | |
_generateMetadataHeaders ($metadata=array()) | |
Generate metadata headers. | |
_parseMetadataHeaders ($headers=array()) | |
Parse metadata headers. | |
_parseMetadataElement ($element=null) | |
Parse metadata XML. | |
Protected Attributes | |
$_apiVersion = '2009-09-19' | |
$_host = '' | |
$_accountName = '' | |
$_accountKey = '' | |
$_usePathStyleUri = false | |
$_credentials = null | |
$_retryPolicy = null | |
$_httpClientChannel = null | |
$_useProxy = false | |
$_proxyUrl = '' | |
$_proxyPort = 80 | |
$_proxyCredentials = '' | |
__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 |
||
) |
Creates a new Zend_Service_WindowsAzure_Storage instance.
string | $host | Storage host name |
string | $accountName | Account name for Windows Azure |
string | $accountKey | Account key for Windows Azure |
boolean | $usePathStyleUri | Use path-style URI's |
Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract | $retryPolicy | Retry policy to use when making requests |
|
protected |
Generate metadata headers.
array | $metadata |
|
protected |
Parse metadata XML.
SimpleXMLElement | $parentElement | Element containing the Metadata element. |
|
protected |
Parse metadata headers.
array | $headers | HTTP headers containing metadata |
|
protected |
Parse result from Zend_Http_Response.
Zend_Http_Response | $response | Response from HTTP call |
Zend_Service_WindowsAzure_Exception |
|
protected |
Perform request using Zend_Http_Client channel.
string | $path | Path |
string | $queryString | Query string |
string | $httpVerb | HTTP verb the request will use |
array | $headers | x-ms headers to add |
boolean | $forTableStorage | Is the request for table storage? |
mixed | $rawData | Optional RAW HTTP data to be sent over the wire |
string | $resourceType | Resource type |
string | $requiredPermission | Required permission |
|
static |
Builds a query string from an array of elements.
array | Array of elements |
getAccountName | ( | ) |
Returns the Windows Azure account name.
getBaseUrl | ( | ) |
Get base URL for creating requests.
getCredentials | ( | ) |
getHttpClientChannel | ( | ) |
Retrieve HTTP client channel.
isoDate | ( | $timestamp = null | ) |
Generate ISO 8601 compliant date string in UTC time zone.
int | $timestamp |
|
static |
Is valid metadata name?
string | $metadataName | Metadata name |
setCredentials | ( | Zend_Service_WindowsAzure_Credentials_CredentialsAbstract | $credentials | ) |
Set Zend_Service_WindowsAzure_Credentials_CredentialsAbstract instance.
Zend_Service_WindowsAzure_Credentials_CredentialsAbstract | $credentials | Zend_Service_WindowsAzure_Credentials_CredentialsAbstract instance to use for request signing. |
setHttpClientChannel | ( | $adapterInstance = 'Zend_Http_Client_Adapter_Proxy' | ) |
Set the HTTP client channel to use.
Zend_Http_Client_Adapter_Interface | string | $adapterInstance | Adapter instance or adapter class name. |
setProxy | ( | $useProxy = false , |
|
$proxyUrl = '' , |
|||
$proxyPort = 80 , |
|||
$proxyCredentials = '' |
|||
) |
Set proxy.
boolean | $useProxy | Use proxy? |
string | $proxyUrl | Proxy URL |
int | $proxyPort | Proxy port |
string | $proxyCredentials | Proxy credentials |
setRetryPolicy | ( | Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract | $retryPolicy = null | ) |
Set retry policy to use when making requests.
Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract | $retryPolicy | Retry policy to use when making requests |
|
static |
URL encode function.
string | $value | Value to encode |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
const PREFIX_METADATA = "x-ms-meta-" |
const PREFIX_PROPERTIES = "x-ms-prop-" |
HTTP header prefixes.
const PREFIX_STORAGE_HEADER = "x-ms-" |
const RESOURCE_BLOB = "b" |
const RESOURCE_CONTAINER = "c" |
const RESOURCE_ENTITY = "e" |
const RESOURCE_QUEUE = "q" |
const RESOURCE_TABLE = "t" |
const RESOURCE_UNKNOWN = "unknown" |
Resource types.
const URL_CLOUD_BLOB = "blob.core.windows.net" |
Live storage URLS.
const URL_CLOUD_QUEUE = "queue.core.windows.net" |
const URL_CLOUD_TABLE = "table.core.windows.net" |
const URL_DEV_BLOB = "127.0.0.1:10000" |
Development storage URLS.
const URL_DEV_QUEUE = "127.0.0.1:10001" |
const URL_DEV_TABLE = "127.0.0.1:10002" |