Cloud/StorageService/Adapter/WindowsAzure.php

Show: PublicProtectedPrivateinherited
Table of Contents
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Cloud  
Subpackage
StorageService  

\Zend_Cloud_StorageService_Adapter_WindowsAzure

Package: Zend_Cloud\StorageService
Windows Azure Blob Service abstraction
Implements
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

>VConstant  ACCOUNT_NAME = 'storage_accountname'
>VConstant  ACCOUNT_KEY = 'storage_accountkey'
>VConstant  HOST = "storage_host"
>VConstant  PROXY_HOST = "storage_proxy_host"
>VConstant  PROXY_PORT = "storage_proxy_port"
>VConstant  PROXY_CREDENTIALS = "storage_proxy_credentials"
>VConstant  CONTAINER = "storage_container"
>VConstant  RETURN_TYPE = 'return_type'
>VConstant  RETURN_PATHNAME = 'return_path'
>VConstant  RETURN_OPENMODE = 'return_openmode'
>VConstant  RETURN_PATH = 1
return types for fetch
>VConstant  RETURN_STRING = 2
>VConstant  RETURN_STREAM = 3
>VConstant  RETURN_LIST = 1
return types for list
>VConstant  RETURN_NAMES = 2
>VConstant  DEFAULT_HOST = \Zend_Service_WindowsAzure_Storage::URL_CLOUD_BLOB

Properties

>VPropertyprotectedstring $_container
Storage container to operate on
Details
Type
string
>VPropertyprotected\Zend_Service_WindowsAzure_Storage_Blob $_storageClient = null
Storage client
Default valuenullDetails
Type
\Zend_Service_WindowsAzure_Storage_Blob

Methods

methodpublic__construct(array | \Zend_Config $options = array()) : void

Creates a new Zend_Cloud_Storage_WindowsAzure instance

Parameters
NameTypeDescription
$optionsarray | \Zend_Config

Options for the Zend_Cloud_Storage_WindowsAzure instance

methodpubliccopyItem(string $sourcePath, string $destinationPath, array $options = null) : void

Copy an item in the storage service to a given path.

Parameters
NameTypeDescription
$sourcePathstring
$destinationPathstring
$optionsarray
methodpublicdeleteContainer() : void

Delete container

methodpublicdeleteItem(string $path, array $options = null) : void

Delete an item in the storage service.

Parameters
NameTypeDescription
$pathstring
$optionsarray
methodpublicdeleteMetadata(string $path, array $options = null) : void

Delete a key/value array of metadata at the given path.

Parameters
NameTypeDescription
$pathstring
$optionsarray
methodpublicfetchItem(string $path, array $options = null) : mixed

Get an item from the storage service.

Parameters
NameTypeDescription
$pathstring
$optionsarray
Returns
TypeDescription
mixed
methodpublicfetchMetadata(string $path, array $options = null) : array

Get a key/value array of metadata for the given path.

Parameters
NameTypeDescription
$pathstring
$optionsarray
Returns
TypeDescription
array
methodpublicgetClient() : \Zend_Service_Azure_Storage_Blob

Get the concrete adapter.

Returns
TypeDescription
\Zend_Service_Azure_Storage_Blob
methodpubliclistItems(string $path, array $options = null) : array

List items in the given directory in the storage service

The $path must be a directory
Parameters
NameTypeDescription
$pathstring

Must be a directory

$optionsarray
Returns
TypeDescription
arrayA list of item names
methodpublicmoveItem(string $sourcePath, string $destinationPath, array $options = null) : void

Move an item in the storage service to a given path.

Parameters
NameTypeDescription
$sourcePathstring
$destinationPathstring
$optionsarray
methodpublicrenameItem(string $path, string $name, array $options = null) : void

Rename an item in the storage service to a given name.

Parameters
NameTypeDescription
$pathstring
$namestring
$optionsarray
methodpublicstoreItem(string $destinationPath, mixed $data, array $options = null) : boolean

Store an item in the storage service.

WARNING: This operation overwrites any item that is located at $destinationPath.
Parameters
NameTypeDescription
$destinationPathstring
$datamixed
$optionsarray
Returns
TypeDescription
boolean
methodpublicstoreMetadata(string $destinationPath,  $metadata, array $options = null) : void

Store a key/value array of metadata at the given path.

WARNING: This operation overwrites any metadata that is located at $destinationPath.
Parameters
NameTypeDescription
$destinationPathstring
$metadata
$optionsarray
Documentation was generated by phpDocumentor 2.2.0 .