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


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) | |
| blobExists ($containerName= '', $blobName= '') | |
| containerExists ($containerName= '') | |
| createContainer ($containerName= '', $metadata=array()) | |
| getContainerAcl ($containerName= '', $signedIdentifiers=false) | |
| setContainerAcl ($containerName= '', $acl=self::ACL_PRIVATE, $signedIdentifiers=array()) | |
| getContainer ($containerName= '') | |
| getContainerMetadata ($containerName= '') | |
| setContainerMetadata ($containerName= '', $metadata=array(), $additionalHeaders=array()) | |
| deleteContainer ($containerName= '', $additionalHeaders=array()) | |
| listContainers ($prefix=null, $maxResults=null, $marker=null, $currentResultCount=0) | |
| putBlob ($containerName= '', $blobName= '', $localFileName= '', $metadata=array(), $additionalHeaders=array()) | |
| putLargeBlob ($containerName= '', $blobName= '', $localFileName= '', $metadata=array()) | |
| putBlock ($containerName= '', $blobName= '', $identifier= '', $contents= '') | |
| putBlockList ($containerName= '', $blobName= '', $blockList=array(), $metadata=array(), $additionalHeaders=array()) | |
| getBlockList ($containerName= '', $blobName= '', $type=0) | |
| copyBlob ($sourceContainerName= '', $sourceBlobName= '', $destinationContainerName= '', $destinationBlobName= '', $metadata=array(), $additionalHeaders=array()) | |
| getBlob ($containerName= '', $blobName= '', $localFileName= '', $additionalHeaders=array()) | |
| getBlobInstance ($containerName= '', $blobName= '', $additionalHeaders=array()) | |
| getBlobMetadata ($containerName= '', $blobName= '') | |
| setBlobMetadata ($containerName= '', $blobName= '', $metadata=array(), $additionalHeaders=array()) | |
| deleteBlob ($containerName= '', $blobName= '', $additionalHeaders=array()) | |
| listBlobs ($containerName= '', $prefix= '', $delimiter= '', $maxResults=null, $marker=null, $currentResultCount=0) | |
| generateSharedAccessUrl ($containerName= '', $blobName= '', $resource= 'b', $permissions= 'r', $start= '', $expiry= '', $identifier= '') | |
| registerAsClient ($name) | |
| unregisterAsClient ($name) | |
| registerStreamWrapper ($name= 'azure') | |
| unregisterStreamWrapper ($name= 'azure') | |
Static Public Member Functions | |
| static | getWrapperClient ($name) |
| static | createResourceName ($containerName= '', $blobName= '') |
| static | isValidContainerName ($containerName= '') |
Data Fields | |
| const | ACL_PRIVATE = false |
| const | ACL_PUBLIC = true |
| const | MAX_BLOB_SIZE = 67108864 |
| const | MAX_BLOB_TRANSFER_SIZE = 4194304 |
Protected Member Functions | |
| _getErrorMessage (Zend_Http_Response $response, $alternativeError= 'Unknown error.') | |
| _generateBlockId ($part=0) | |
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 |
Reimplemented from Zend_Service_WindowsAzure_Storage.
| _generateBlockId | ( | $ | part = 0 | ) | [protected] |
| _getErrorMessage | ( | Zend_Http_Response $ | response, |
| $ | alternativeError = 'Unknown error.' |
||
| ) | [protected] |
Get error message from Zend_Http_Response
| Zend_Http_Response | $response | Repsonse |
| string | $alternativeError | Alternative error message |
Definition at line 1376 of file Blob.php.


| blobExists | ( | $ | containerName = '', |
| $ | blobName = '' |
||
| ) |
| containerExists | ( | $ | containerName = '' | ) |
| copyBlob | ( | $ | sourceContainerName = '', |
| $ | sourceBlobName = '', |
||
| $ | destinationContainerName = '', |
||
| $ | destinationBlobName = '', |
||
| $ | metadata = array(), |
||
| $ | 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 |
| array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd894037.aspx for more information. |
| Zend_Service_WindowsAzure_Exception |
Definition at line 841 of file Blob.php.

| createContainer | ( | $ | containerName = '', |
| $ | metadata = array() |
||
| ) |
Create container
| string | $containerName | Container name |
| array | $metadata | Key/value pairs of meta data |
| Zend_Service_WindowsAzure_Exception |
Definition at line 201 of file Blob.php.

| static createResourceName | ( | $ | containerName = '', |
| $ | blobName = '' |
||
| ) | [static] |
| deleteBlob | ( | $ | containerName = '', |
| $ | blobName = '', |
||
| $ | additionalHeaders = array() |
||
| ) |
Delete blob
| string | $containerName | Container name |
| string | $blobName | Blob name |
| array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information. |
| Zend_Service_WindowsAzure_Exception |
Definition at line 1084 of file Blob.php.

| 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 |
Definition at line 436 of file Blob.php.

| 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 |
Definition at line 1226 of file Blob.php.

| getBlob | ( | $ | containerName = '', |
| $ | blobName = '', |
||
| $ | localFileName = '', |
||
| $ | additionalHeaders = array() |
||
| ) |
Get blob
| string | $containerName | Container name |
| string | $blobName | Blob name |
| string | $localFileName | Local file name to store downloaded blob |
| array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information. |
| Zend_Service_WindowsAzure_Exception |
Definition at line 914 of file Blob.php.

| getBlobInstance | ( | $ | containerName = '', |
| $ | blobName = '', |
||
| $ | additionalHeaders = array() |
||
| ) |
Get container
| string | $containerName | Container name |
| string | $blobName | Blob name |
| array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information. |
| Zend_Service_WindowsAzure_Exception |
Definition at line 956 of file Blob.php.


| getBlobMetadata | ( | $ | containerName = '', |
| $ | blobName = '' |
||
| ) |
Get blob metadata
| string | $containerName | Container name |
| string | $blobName | Blob name |
| Zend_Service_WindowsAzure_Exception |
Definition at line 1013 of file Blob.php.

| getBlockList | ( | $ | containerName = '', |
| $ | blobName = '', |
||
| $ | type = 0 |
||
| ) |
Get block list
| string | $containerName | Container name |
| string | $blobName | Blob name |
| integer | $type | Type of block list to retrieve. 0 = all, 1 = committed, 2 = uncommitted |
| Zend_Service_WindowsAzure_Exception |
Definition at line 771 of file Blob.php.

| getContainer | ( | $ | containerName = '' | ) |
Get container
| string | $containerName | Container name |
| Zend_Service_WindowsAzure_Exception |
Definition at line 342 of file Blob.php.


| getContainerAcl | ( | $ | containerName = '', |
| $ | signedIdentifiers = false |
||
| ) |
Get container ACL
| string | $containerName | Container name |
| bool | $signedIdentifiers | Display only public/private or display signed identifiers? |
| Zend_Service_WindowsAzure_Exception |
Definition at line 239 of file Blob.php.

| getContainerMetadata | ( | $ | containerName = '' | ) |
Get container metadata
| string | $containerName | Container name |
| Zend_Service_WindowsAzure_Exception |
Definition at line 376 of file Blob.php.

| static getWrapperClient | ( | $ | name | ) | [static] |
| static isValidContainerName | ( | $ | containerName = '' | ) | [static] |
| listBlobs | ( | $ | containerName = '', |
| $ | prefix = '', |
||
| $ | delimiter = '', |
||
| $ | maxResults = null, |
||
| $ | marker = 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. |
| int | $currentResultCount | Current result count (internal use) |
| Zend_Service_WindowsAzure_Exception |
Definition at line 1127 of file Blob.php.


| listContainers | ( | $ | prefix = null, |
| $ | maxResults = null, |
||
| $ | marker = 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. |
| int | $currentResultCount | Current result count (internal use) |
| Zend_Service_WindowsAzure_Exception |
Definition at line 468 of file Blob.php.


| putBlob | ( | $ | containerName = '', |
| $ | blobName = '', |
||
| $ | localFileName = '', |
||
| $ | metadata = array(), |
||
| $ | 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 |
| array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information. |
| Zend_Service_WindowsAzure_Exception |
Definition at line 525 of file Blob.php.


| putBlock | ( | $ | containerName = '', |
| $ | blobName = '', |
||
| $ | identifier = '', |
||
| $ | contents = '' |
||
| ) |
Put large blob block
| string | $containerName | Container name |
| string | $blobName | Blob name |
| string | $identifier | Block ID |
| array | $contents | Contents of the block |
| Zend_Service_WindowsAzure_Exception |
Definition at line 673 of file Blob.php.


| putBlockList | ( | $ | containerName = '', |
| $ | blobName = '', |
||
| $ | blockList = array(), |
||
| $ | metadata = array(), |
||
| $ | 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 |
| array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information. |
| Zend_Service_WindowsAzure_Exception |
Definition at line 711 of file Blob.php.


| putLargeBlob | ( | $ | containerName = '', |
| $ | blobName = '', |
||
| $ | localFileName = '', |
||
| $ | metadata = 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 |
| Zend_Service_WindowsAzure_Exception |
Definition at line 597 of file Blob.php.


| registerAsClient | ( | $ | name | ) |
| registerStreamWrapper | ( | $ | name = 'azure' | ) |
| setBlobMetadata | ( | $ | containerName = '', |
| $ | blobName = '', |
||
| $ | metadata = array(), |
||
| $ | 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 |
| array | $additionalHeaders | Additional headers. See http://msdn.microsoft.com/en-us/library/dd179371.aspx for more information. |
| Zend_Service_WindowsAzure_Exception |
Definition at line 1042 of file Blob.php.

| 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 |
Definition at line 297 of file Blob.php.

| 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 |
Definition at line 398 of file Blob.php.

| unregisterAsClient | ( | $ | name | ) |
| unregisterStreamWrapper | ( | $ | name = 'azure' | ) |
| const ACL_PRIVATE = false |
| const ACL_PUBLIC = true |
| const MAX_BLOB_SIZE = 67108864 |
| const MAX_BLOB_TRANSFER_SIZE = 4194304 |