|
Moodle
2.2.1
http://www.collinsharper.com
|

Definition at line 60 of file Storage.php.
| __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 |
Reimplemented in Zend_Service_WindowsAzure_Storage_Blob, Zend_Service_WindowsAzure_Storage_Table, and Zend_Service_WindowsAzure_Storage_Queue.
Definition at line 179 of file Storage.php.

| _generateMetadataHeaders | ( | $ | metadata = array() | ) | [protected] |
Generate metadata headers
| array | $metadata |
Definition at line 436 of file Storage.php.

| _parseMetadataHeaders | ( | $ | headers = array() | ) | [protected] |
Parse metadata errors
| array | $headers | HTTP headers containing metadata |
Definition at line 460 of file Storage.php.

| _parseResponse | ( | Zend_Http_Response $ | response = null | ) | [protected] |
Parse result from Zend_Http_Response
| Zend_Http_Response | $response | Response from HTTP call |
| Zend_Service_WindowsAzure_Exception |
Definition at line 407 of file Storage.php.

| _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 |
||
| ) | [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 |
Definition at line 344 of file Storage.php.


| getAccountName | ( | ) |
| getBaseUrl | ( | ) |
Get base URL for creating requests
Definition at line 299 of file Storage.php.

| getCredentials | ( | ) |
Get Zend_Service_WindowsAzure_Credentials_CredentialsAbstract instance
Definition at line 326 of file Storage.php.
| isoDate | ( | $ | timestamp = null | ) |
Generate ISO 8601 compliant date string in UTC time zone
| int | $timestamp |
Definition at line 483 of file Storage.php.

| 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. |
Definition at line 313 of file Storage.php.

| 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. |
Definition at line 230 of file Storage.php.
| 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 |
Definition at line 256 of file Storage.php.
| 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 |
Definition at line 240 of file Storage.php.

| static urlencode | ( | $ | value | ) | [static] |
URL encode function
| string | $value | Value to encode |
Definition at line 503 of file Storage.php.

$_accountKey = '' [protected] |
Definition at line 112 of file Storage.php.
$_accountName = '' [protected] |
Definition at line 105 of file Storage.php.
$_apiVersion = '2009-04-14' [protected] |
Definition at line 91 of file Storage.php.
$_credentials = null [protected] |
Definition at line 126 of file Storage.php.
$_host = '' [protected] |
Definition at line 98 of file Storage.php.
$_httpClientChannel = null [protected] |
Definition at line 140 of file Storage.php.
$_proxyCredentials = '' [protected] |
Definition at line 168 of file Storage.php.
$_proxyPort = 80 [protected] |
Definition at line 161 of file Storage.php.
$_proxyUrl = '' [protected] |
Definition at line 154 of file Storage.php.
$_retryPolicy = null [protected] |
Definition at line 133 of file Storage.php.
$_usePathStyleUri = false [protected] |
Definition at line 119 of file Storage.php.
$_useProxy = false [protected] |
Definition at line 147 of file Storage.php.
| const RESOURCE_BLOB = "b" |
Definition at line 81 of file Storage.php.
| const RESOURCE_CONTAINER = "c" |
Definition at line 80 of file Storage.php.
| const RESOURCE_ENTITY = "e" |
Definition at line 83 of file Storage.php.
| const RESOURCE_QUEUE = "q" |
Definition at line 84 of file Storage.php.
| const RESOURCE_TABLE = "t" |
Definition at line 82 of file Storage.php.
| const RESOURCE_UNKNOWN = "unknown" |
Resource types
Definition at line 79 of file Storage.php.
| const URL_CLOUD_BLOB = "blob.core.windows.net" |
Live storage URLS
Definition at line 72 of file Storage.php.
| const URL_CLOUD_QUEUE = "queue.core.windows.net" |
Definition at line 73 of file Storage.php.
| const URL_CLOUD_TABLE = "table.core.windows.net" |
Definition at line 74 of file Storage.php.
| const URL_DEV_BLOB = "127.0.0.1:10000" |
Development storage URLS
Definition at line 65 of file Storage.php.
| const URL_DEV_QUEUE = "127.0.0.1:10001" |
Definition at line 66 of file Storage.php.
| const URL_DEV_TABLE = "127.0.0.1:10002" |
Definition at line 67 of file Storage.php.