Zend Framework
1.12
|
Public Member Functions | |
__construct ($host=Zend_Service_WindowsAzure_Storage::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_Blob instance. | |
blobExists ($containerName= '', $blobName= '', $snapshotId=null) | |
Check if a blob exists. | |
containerExists ($containerName= '') | |
Check if a container exists. | |
createContainer ($containerName= '', $metadata=array()) | |
Create container. | |
createContainerIfNotExists ($containerName= '', $metadata=array()) | |
Create container if it does not exist. | |
getContainerAcl ($containerName= '', $signedIdentifiers=false) | |
Get container ACL. | |
setContainerAcl ($containerName= '', $acl=self::ACL_PRIVATE, $signedIdentifiers=array()) | |
Set container ACL. | |
getContainer ($containerName= '') | |
Get container. | |
getContainerMetadata ($containerName= '') | |
Get container metadata. | |
setContainerMetadata ($containerName= '', $metadata=array(), $additionalHeaders=array()) | |
Set container metadata. | |
deleteContainer ($containerName= '', $additionalHeaders=array()) | |
Delete container. | |
listContainers ($prefix=null, $maxResults=null, $marker=null, $include=null, $currentResultCount=0) | |
List containers. | |
putBlob ($containerName= '', $blobName= '', $localFileName= '', $metadata=array(), $leaseId=null, $additionalHeaders=array()) | |
Put blob. | |
putBlobData ($containerName= '', $blobName= '', $data= '', $metadata=array(), $leaseId=null, $additionalHeaders=array()) | |
Put blob data. | |
putLargeBlob ($containerName= '', $blobName= '', $localFileName= '', $metadata=array(), $leaseId=null, $additionalHeaders=array()) | |
Put large blob (> 64 MB) | |
putBlock ($containerName= '', $blobName= '', $identifier= '', $contents= '', $leaseId=null) | |
Put large blob block. | |
putBlockList ($containerName= '', $blobName= '', $blockList=array(), $metadata=array(), $leaseId=null, $additionalHeaders=array()) | |
Put block list. | |
getBlockList ($containerName= '', $blobName= '', $snapshotId=null, $leaseId=null, $type=0) | |
Get block list. | |
createPageBlob ($containerName= '', $blobName= '', $size=0, $metadata=array(), $leaseId=null, $additionalHeaders=array()) | |
Create page blob. | |
putPage ($containerName= '', $blobName= '', $startByteOffset=0, $endByteOffset=0, $contents= '', $writeMethod=self::PAGE_WRITE_UPDATE, $leaseId=null, $additionalHeaders=array()) | |
Put page in page blob. | |
getPageRegions ($containerName= '', $blobName= '', $startByteOffset=0, $endByteOffset=0, $leaseId=null) | |
Put page in page blob. | |
copyBlob ($sourceContainerName= '', $sourceBlobName= '', $destinationContainerName= '', $destinationBlobName= '', $metadata=array(), $sourceSnapshotId=null, $destinationLeaseId=null, $additionalHeaders=array()) | |
Copy blob. | |
getBlob ($containerName= '', $blobName= '', $localFileName= '', $snapshotId=null, $leaseId=null, $additionalHeaders=array()) | |
Get blob. | |
getBlobData ($containerName= '', $blobName= '', $snapshotId=null, $leaseId=null, $additionalHeaders=array()) | |
Get blob data. | |
getBlobInstance ($containerName= '', $blobName= '', $snapshotId=null, $leaseId=null, $additionalHeaders=array()) | |
Get blob instance. | |
getBlobMetadata ($containerName= '', $blobName= '', $snapshotId=null, $leaseId=null) | |
Get blob metadata. | |
setBlobMetadata ($containerName= '', $blobName= '', $metadata=array(), $leaseId=null, $additionalHeaders=array()) | |
Set blob metadata. | |
setBlobProperties ($containerName= '', $blobName= '', $leaseId=null, $additionalHeaders=array()) | |
Set blob properties. | |
getBlobProperties ($containerName= '', $blobName= '', $snapshotId=null, $leaseId=null) | |
Get blob properties. | |
deleteBlob ($containerName= '', $blobName= '', $snapshotId=null, $leaseId=null, $additionalHeaders=array()) | |
Delete blob. | |
snapshotBlob ($containerName= '', $blobName= '', $metadata=array(), $additionalHeaders=array()) | |
Snapshot blob. | |
leaseBlob ($containerName= '', $blobName= '', $leaseAction=self::LEASE_ACQUIRE, $leaseId=null) | |
Lease blob - See (http://msdn.microsoft.com/en-us/library/ee691972.aspx) | |
listBlobs ($containerName= '', $prefix= '', $delimiter= '', $maxResults=null, $marker=null, $include=null, $currentResultCount=0) | |
List blobs. | |
generateSharedAccessUrl ($containerName= '', $blobName= '', $resource= 'b', $permissions= 'r', $start= '', $expiry= '', $identifier= '') | |
Generate shared access URL. | |
registerAsClient ($name) | |
Register this object as stream wrapper client. | |
unregisterAsClient ($name) | |
Unregister this object as stream wrapper client. | |
registerStreamWrapper ($name= 'azure') | |
Register this object as stream wrapper. | |
unregisterStreamWrapper ($name= 'azure') | |
Unregister this object as stream wrapper. | |
![]() | |
__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. | |
setHttpClientChannel ($adapterInstance= 'Zend_Http_Client_Adapter_Proxy') | |
Set the HTTP client channel to use. | |
getHttpClientChannel () | |
Retrieve HTTP client channel. | |
setRetryPolicy (Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy=null) | |
Set retry policy to use when making requests. | |
setProxy ($useProxy=false, $proxyUrl= '', $proxyPort=80, $proxyCredentials= '') | |
Set proxy. | |
getAccountName () | |
Returns the Windows Azure account name. | |
getBaseUrl () | |
Get base URL for creating requests. | |
setCredentials (Zend_Service_WindowsAzure_Credentials_CredentialsAbstract $credentials) | |
Set Zend_Service_WindowsAzure_Credentials_CredentialsAbstract instance. | |
getCredentials () | |
Get Zend_Service_WindowsAzure_Credentials_CredentialsAbstract instance. | |
isoDate ($timestamp=null) | |
Generate ISO 8601 compliant date string in UTC time zone. | |
Static Public Member Functions | |
static | getWrapperClient ($name) |
Get wrapper client for stream type. | |
static | createResourceName ($containerName= '', $blobName= '') |
Create resource name. | |
static | isValidContainerName ($containerName= '') |
Is valid container name? | |
![]() | |
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 | ACL_PRIVATE = null |
ACL - Private access. | |
const | ACL_PUBLIC = 'container' |
ACL - Public access (read all blobs) | |
const | ACL_PUBLIC_BLOB = 'blob' |
ACL - Blob Public access (read all blobs) | |
const | ACL_PUBLIC_CONTAINER = 'container' |
ACL - Container Public access (enumerate and read all blobs) | |
const | LEASE_ACQUIRE = 'acquire' |
Blob lease constants. | |
const | LEASE_RENEW = 'renew' |
const | LEASE_RELEASE = 'release' |
const | LEASE_BREAK = 'break' |
const | MAX_BLOB_SIZE = 67108864 |
Maximal blob size (in bytes) | |
const | MAX_BLOB_TRANSFER_SIZE = 4194304 |
Maximal blob transfer size (in bytes) | |
const | BLOBTYPE_BLOCK = 'BlockBlob' |
Blob types. | |
const | BLOBTYPE_PAGE = 'PageBlob' |
const | PAGE_WRITE_UPDATE = 'update' |
Put page write options. | |
const | PAGE_WRITE_CLEAR = 'clear' |
![]() | |
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 | |
_getErrorMessage (Zend_Http_Response $response, $alternativeError= 'Unknown error.') | |
Get error message from Zend_Http_Response. | |
_generateBlockId ($part=0) | |
Generate block id. | |
![]() | |
_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 | |
$_sharedAccessSignatureCredentials = null | |
![]() | |
$_apiVersion = '2009-09-19' | |
$_host = '' | |
$_accountName = '' | |
$_accountKey = '' | |
$_usePathStyleUri = false | |
$_credentials = null | |
$_retryPolicy = null | |
$_httpClientChannel = null | |
$_useProxy = false | |
$_proxyUrl = '' | |
$_proxyPort = 80 | |
$_proxyCredentials = '' | |
Static Protected Attributes | |
static | $_wrapperClients = array() |
__construct | ( | $host = Zend_Service_WindowsAzure_Storage::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_Blob 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 block id.
int | $part | Block number |
|
protected |
Get error message from Zend_Http_Response.
Zend_Http_Response | $response | Repsonse |
string | $alternativeError | Alternative error message |
blobExists | ( | $containerName = '' , |
|
$blobName = '' , |
|||
$snapshotId = null |
|||
) |
Check if a blob exists.
string | $containerName | Container name |
string | $blobName | Blob name |
string | $snapshotId | Snapshot identifier |
containerExists | ( | $containerName = '' | ) |
Check if a container exists.
string | $containerName | Container name |
copyBlob | ( | $sourceContainerName = '' , |
|
$sourceBlobName = '' , |
|||
$destinationContainerName = '' , |
|||
$destinationBlobName = '' , |
|||
$metadata = array() , |
|||
$sourceSnapshotId = null , |
|||
$destinationLeaseId = null , |
|||
$additionalHeaders = array() |
|||
) |
Copy blob.
string | $sourceContainerName | Source container name |
string | $sourceBlobName | Source blob name |
string | $destinationContainerName | Destination container name |
string | $destinationBlobName | Destination blob name |
array | $metadata | Key/value pairs of meta data |
string | $sourceSnapshotId | Source snapshot identifier |
string | $destinationLeaseId | Destination lease identifier |
array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd894037.aspx for more information. |
Zend_Service_WindowsAzure_Exception |
createContainer | ( | $containerName = '' , |
|
$metadata = array() |
|||
) |
Create container.
string | $containerName | Container name |
array | $metadata | Key/value pairs of meta data |
Zend_Service_WindowsAzure_Exception |
createContainerIfNotExists | ( | $containerName = '' , |
|
$metadata = array() |
|||
) |
Create container if it does not exist.
string | $containerName | Container name |
array | $metadata | Key/value pairs of meta data |
Zend_Service_WindowsAzure_Exception |
createPageBlob | ( | $containerName = '' , |
|
$blobName = '' , |
|||
$size = 0 , |
|||
$metadata = array() , |
|||
$leaseId = null , |
|||
$additionalHeaders = array() |
|||
) |
Create page blob.
string | $containerName | Container name |
string | $blobName | Blob name |
int | $size | Size of the page blob in bytes |
array | $metadata | Key/value pairs of meta data |
string | $leaseId | Lease identifier |
array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information. |
Zend_Service_WindowsAzure_Exception |
|
static |
Create resource name.
string | $containerName | Container name |
string | $blobName | Blob name |
deleteBlob | ( | $containerName = '' , |
|
$blobName = '' , |
|||
$snapshotId = null , |
|||
$leaseId = null , |
|||
$additionalHeaders = array() |
|||
) |
Delete blob.
string | $containerName | Container name |
string | $blobName | Blob name |
string | $snapshotId | Snapshot identifier |
string | $leaseId | Lease identifier |
array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information. |
Zend_Service_WindowsAzure_Exception |
deleteContainer | ( | $containerName = '' , |
|
$additionalHeaders = array() |
|||
) |
Delete container.
string | $containerName | Container name |
array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information. |
Zend_Service_WindowsAzure_Exception |
generateSharedAccessUrl | ( | $containerName = '' , |
|
$blobName = '' , |
|||
$resource = 'b' , |
|||
$permissions = 'r' , |
|||
$start = '' , |
|||
$expiry = '' , |
|||
$identifier = '' |
|||
) |
Generate shared access URL.
string | $containerName | Container name |
string | $blobName | Blob name |
string | $resource | Signed resource - container (c) - blob (b) |
string | $permissions | Signed permissions - read (r), write (w), delete (d) and list (l) |
string | $start | The time at which the Shared Access Signature becomes valid. |
string | $expiry | The time at which the Shared Access Signature becomes invalid. |
string | $identifier | Signed identifier |
getBlob | ( | $containerName = '' , |
|
$blobName = '' , |
|||
$localFileName = '' , |
|||
$snapshotId = null , |
|||
$leaseId = null , |
|||
$additionalHeaders = array() |
|||
) |
Get blob.
string | $containerName | Container name |
string | $blobName | Blob name |
string | $localFileName | Local file name to store downloaded blob |
string | $snapshotId | Snapshot identifier |
string | $leaseId | Lease identifier |
array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information. |
Zend_Service_WindowsAzure_Exception |
getBlobData | ( | $containerName = '' , |
|
$blobName = '' , |
|||
$snapshotId = null , |
|||
$leaseId = null , |
|||
$additionalHeaders = array() |
|||
) |
Get blob data.
string | $containerName | Container name |
string | $blobName | Blob name |
string | $snapshotId | Snapshot identifier |
string | $leaseId | Lease identifier |
array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information. |
Zend_Service_WindowsAzure_Exception |
getBlobInstance | ( | $containerName = '' , |
|
$blobName = '' , |
|||
$snapshotId = null , |
|||
$leaseId = null , |
|||
$additionalHeaders = array() |
|||
) |
Get blob instance.
string | $containerName | Container name |
string | $blobName | Blob name |
string | $snapshotId | Snapshot identifier |
string | $leaseId | Lease identifier |
array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information. |
Zend_Service_WindowsAzure_Exception |
getBlobMetadata | ( | $containerName = '' , |
|
$blobName = '' , |
|||
$snapshotId = null , |
|||
$leaseId = null |
|||
) |
Get blob metadata.
string | $containerName | Container name |
string | $blobName | Blob name |
string | $snapshotId | Snapshot identifier |
string | $leaseId | Lease identifier |
Zend_Service_WindowsAzure_Exception |
getBlobProperties | ( | $containerName = '' , |
|
$blobName = '' , |
|||
$snapshotId = null , |
|||
$leaseId = null |
|||
) |
Get blob properties.
string | $containerName | Container name |
string | $blobName | Blob name |
string | $snapshotId | Snapshot identifier |
string | $leaseId | Lease identifier |
Zend_Service_WindowsAzure_Exception |
getBlockList | ( | $containerName = '' , |
|
$blobName = '' , |
|||
$snapshotId = null , |
|||
$leaseId = null , |
|||
$type = 0 |
|||
) |
Get block list.
string | $containerName | Container name |
string | $blobName | Blob name |
string | $snapshotId | Snapshot identifier |
string | $leaseId | Lease identifier |
integer | $type | Type of block list to retrieve. 0 = all, 1 = committed, 2 = uncommitted |
Zend_Service_WindowsAzure_Exception |
getContainer | ( | $containerName = '' | ) |
Get container.
string | $containerName | Container name |
Zend_Service_WindowsAzure_Exception |
getContainerAcl | ( | $containerName = '' , |
|
$signedIdentifiers = false |
|||
) |
Get container ACL.
string | $containerName | Container name |
bool | $signedIdentifiers | Display only private/blob/container or display signed identifiers? |
Zend_Service_WindowsAzure_Exception |
getContainerMetadata | ( | $containerName = '' | ) |
Get container metadata.
string | $containerName | Container name |
Zend_Service_WindowsAzure_Exception |
getPageRegions | ( | $containerName = '' , |
|
$blobName = '' , |
|||
$startByteOffset = 0 , |
|||
$endByteOffset = 0 , |
|||
$leaseId = null |
|||
) |
Put page in page blob.
string | $containerName | Container name |
string | $blobName | Blob name |
int | $startByteOffset | Start byte offset |
int | $endByteOffset | End byte offset |
string | $leaseId | Lease identifier |
Zend_Service_WindowsAzure_Exception |
|
static |
Get wrapper client for stream type.
string | $name | Protocol name |
|
static |
Is valid container name?
string | $containerName | Container name |
leaseBlob | ( | $containerName = '' , |
|
$blobName = '' , |
|||
$leaseAction = self::LEASE_ACQUIRE , |
|||
$leaseId = null |
|||
) |
Lease blob - See (http://msdn.microsoft.com/en-us/library/ee691972.aspx)
string | $containerName | Container name |
string | $blobName | Blob name |
string | $leaseAction | Lease action (Zend_Service_WindowsAzure_Storage_Blob::LEASE_*) |
string | $leaseId | Lease identifier, required to renew the lease or to release the lease. |
Zend_Service_WindowsAzure_Exception |
listBlobs | ( | $containerName = '' , |
|
$prefix = '' , |
|||
$delimiter = '' , |
|||
$maxResults = null , |
|||
$marker = null , |
|||
$include = null , |
|||
$currentResultCount = 0 |
|||
) |
List blobs.
string | $containerName | Container name |
string | $prefix | Optional. Filters the results to return only blobs whose name begins with the specified prefix. |
string | $delimiter | Optional. Delimiter, i.e. '/', for specifying folder hierarchy |
int | $maxResults | Optional. Specifies the maximum number of blobs to return per call to Azure storage. This does NOT affect list size returned by this function. (maximum: 5000) |
string | $marker | Optional string value that identifies the portion of the list to be returned with the next list operation. |
string | $include | Optional. Specifies that the response should include one or more of the following subsets: '', 'metadata', 'snapshots', 'uncommittedblobs'). Multiple values can be added separated with a comma (,) |
int | $currentResultCount | Current result count (internal use) |
Zend_Service_WindowsAzure_Exception |
listContainers | ( | $prefix = null , |
|
$maxResults = null , |
|||
$marker = null , |
|||
$include = null , |
|||
$currentResultCount = 0 |
|||
) |
List containers.
string | $prefix | Optional. Filters the results to return only containers whose name begins with the specified prefix. |
int | $maxResults | Optional. Specifies the maximum number of containers to return per call to Azure storage. This does NOT affect list size returned by this function. (maximum: 5000) |
string | $marker | Optional string value that identifies the portion of the list to be returned with the next list operation. |
string | $include | Optional. Include this parameter to specify that the container's metadata be returned as part of the response body. (allowed values: '', 'metadata') |
int | $currentResultCount | Current result count (internal use) |
Zend_Service_WindowsAzure_Exception |
putBlob | ( | $containerName = '' , |
|
$blobName = '' , |
|||
$localFileName = '' , |
|||
$metadata = array() , |
|||
$leaseId = null , |
|||
$additionalHeaders = array() |
|||
) |
Put blob.
string | $containerName | Container name |
string | $blobName | Blob name |
string | $localFileName | Local file name to be uploaded |
array | $metadata | Key/value pairs of meta data |
string | $leaseId | Lease identifier |
array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information. |
Zend_Service_WindowsAzure_Exception |
putBlobData | ( | $containerName = '' , |
|
$blobName = '' , |
|||
$data = '' , |
|||
$metadata = array() , |
|||
$leaseId = null , |
|||
$additionalHeaders = array() |
|||
) |
Put blob data.
string | $containerName | Container name |
string | $blobName | Blob name |
mixed | $data | Data to store |
array | $metadata | Key/value pairs of meta data |
string | $leaseId | Lease identifier |
array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information. |
Zend_Service_WindowsAzure_Exception |
putBlock | ( | $containerName = '' , |
|
$blobName = '' , |
|||
$identifier = '' , |
|||
$contents = '' , |
|||
$leaseId = null |
|||
) |
Put large blob block.
string | $containerName | Container name |
string | $blobName | Blob name |
string | $identifier | Block ID |
array | $contents | Contents of the block |
string | $leaseId | Lease identifier |
Zend_Service_WindowsAzure_Exception |
putBlockList | ( | $containerName = '' , |
|
$blobName = '' , |
|||
$blockList = array() , |
|||
$metadata = array() , |
|||
$leaseId = null , |
|||
$additionalHeaders = array() |
|||
) |
Put block list.
string | $containerName | Container name |
string | $blobName | Blob name |
array | $blockList | Array of block identifiers |
array | $metadata | Key/value pairs of meta data |
string | $leaseId | Lease identifier |
array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information. |
Zend_Service_WindowsAzure_Exception |
putLargeBlob | ( | $containerName = '' , |
|
$blobName = '' , |
|||
$localFileName = '' , |
|||
$metadata = array() , |
|||
$leaseId = null , |
|||
$additionalHeaders = array() |
|||
) |
Put large blob (> 64 MB)
string | $containerName | Container name |
string | $blobName | Blob name |
string | $localFileName | Local file name to be uploaded |
array | $metadata | Key/value pairs of meta data |
string | $leaseId | Lease identifier |
array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information. |
Zend_Service_WindowsAzure_Exception |
putPage | ( | $containerName = '' , |
|
$blobName = '' , |
|||
$startByteOffset = 0 , |
|||
$endByteOffset = 0 , |
|||
$contents = '' , |
|||
$writeMethod = self::PAGE_WRITE_UPDATE , |
|||
$leaseId = null , |
|||
$additionalHeaders = array() |
|||
) |
Put page in page blob.
string | $containerName | Container name |
string | $blobName | Blob name |
int | $startByteOffset | Start byte offset |
int | $endByteOffset | End byte offset |
mixed | $contents | Page contents |
string | $writeMethod | Write method (Zend_Service_WindowsAzure_Storage_Blob::PAGE_WRITE_*) |
string | $leaseId | Lease identifier |
array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information. |
Zend_Service_WindowsAzure_Exception |
registerAsClient | ( | $name | ) |
Register this object as stream wrapper client.
string | $name | Protocol name |
registerStreamWrapper | ( | $name = 'azure' | ) |
Register this object as stream wrapper.
string | $name | Protocol name |
setBlobMetadata | ( | $containerName = '' , |
|
$blobName = '' , |
|||
$metadata = array() , |
|||
$leaseId = null , |
|||
$additionalHeaders = array() |
|||
) |
Set blob metadata.
Calling the Set Blob Metadata operation overwrites all existing metadata that is associated with the blob. It's not possible to modify an individual name/value pair.
string | $containerName | Container name |
string | $blobName | Blob name |
array | $metadata | Key/value pairs of meta data |
string | $leaseId | Lease identifier |
array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information. |
Zend_Service_WindowsAzure_Exception |
setBlobProperties | ( | $containerName = '' , |
|
$blobName = '' , |
|||
$leaseId = null , |
|||
$additionalHeaders = array() |
|||
) |
Set blob properties.
All available properties are listed at http://msdn.microsoft.com/en-us/library/ee691966.aspx and should be provided in the $additionalHeaders parameter.
string | $containerName | Container name |
string | $blobName | Blob name |
string | $leaseId | Lease identifier |
array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information. |
Zend_Service_WindowsAzure_Exception |
setContainerAcl | ( | $containerName = '' , |
|
$acl = self::ACL_PRIVATE , |
|||
$signedIdentifiers = array() |
|||
) |
Set container ACL.
string | $containerName | Container name |
bool | $acl | Zend_Service_WindowsAzure_Storage_Blob::ACL_* |
array | $signedIdentifiers | Signed identifiers |
Zend_Service_WindowsAzure_Exception |
setContainerMetadata | ( | $containerName = '' , |
|
$metadata = array() , |
|||
$additionalHeaders = array() |
|||
) |
Set container metadata.
Calling the Set Container Metadata operation overwrites all existing metadata that is associated with the container. It's not possible to modify an individual name/value pair.
string | $containerName | Container name |
array | $metadata | Key/value pairs of meta data |
array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information. |
Zend_Service_WindowsAzure_Exception |
snapshotBlob | ( | $containerName = '' , |
|
$blobName = '' , |
|||
$metadata = array() , |
|||
$additionalHeaders = array() |
|||
) |
Snapshot blob.
string | $containerName | Container name |
string | $blobName | Blob name |
array | $metadata | Key/value pairs of meta data |
array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information. |
Zend_Service_WindowsAzure_Exception |
unregisterAsClient | ( | $name | ) |
Unregister this object as stream wrapper client.
string | $name | Protocol name |
unregisterStreamWrapper | ( | $name = 'azure' | ) |
Unregister this object as stream wrapper.
string | $name | Protocol name |
|
protected |
|
staticprotected |
const ACL_PRIVATE = null |
ACL - Private access.
const ACL_PUBLIC = 'container' |
ACL - Public access (read all blobs)
const ACL_PUBLIC_BLOB = 'blob' |
ACL - Blob Public access (read all blobs)
const ACL_PUBLIC_CONTAINER = 'container' |
ACL - Container Public access (enumerate and read all blobs)
const BLOBTYPE_BLOCK = 'BlockBlob' |
Blob types.
const BLOBTYPE_PAGE = 'PageBlob' |
const LEASE_ACQUIRE = 'acquire' |
Blob lease constants.
const LEASE_BREAK = 'break' |
const LEASE_RELEASE = 'release' |
const LEASE_RENEW = 'renew' |
const MAX_BLOB_SIZE = 67108864 |
Maximal blob size (in bytes)
const MAX_BLOB_TRANSFER_SIZE = 4194304 |
Maximal blob transfer size (in bytes)
const PAGE_WRITE_CLEAR = 'clear' |
const PAGE_WRITE_UPDATE = 'update' |
Put page write options.