Zend Framework  1.12
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Zend_Cloud_StorageService_Adapter_WindowsAzure Class Reference

Public Member Functions

 __construct ($options=array())
 Creates a new Zend_Cloud_Storage_WindowsAzure instance.
 
 fetchItem ($path, $options=null)
 Get an item from the storage service.
 
 storeItem ($destinationPath, $data, $options=null)
 Store an item in the storage service.
 
 deleteItem ($path, $options=null)
 Delete an item in the storage service.
 
 copyItem ($sourcePath, $destinationPath, $options=null)
 Copy an item in the storage service to a given path.
 
 moveItem ($sourcePath, $destinationPath, $options=null)
 Move an item in the storage service to a given path.
 
 renameItem ($path, $name, $options=null)
 Rename an item in the storage service to a given name.
 
 listItems ($path, $options=null)
 List items in the given directory in the storage service.
 
 fetchMetadata ($path, $options=null)
 Get a key/value array of metadata for the given path.
 
 storeMetadata ($destinationPath, $metadata, $options=null)
 Store a key/value array of metadata at the given path.
 
 deleteMetadata ($path, $options=null)
 Delete a key/value array of metadata at the given path.
 
 deleteContainer ()
 Delete container.
 
 getClient ()
 Get the concrete adapter.
 
- Public Member Functions inherited from Zend_Cloud_StorageService_Adapter
 deleteMetadata ($path)
 Delete a key/value array of metadata at the given path.
 

Public Attributes

const ACCOUNT_NAME = 'storage_accountname'
 
const ACCOUNT_KEY = 'storage_accountkey'
 
const HOST = "storage_host"
 
const PROXY_HOST = "storage_proxy_host"
 
const PROXY_PORT = "storage_proxy_port"
 
const PROXY_CREDENTIALS = "storage_proxy_credentials"
 
const CONTAINER = "storage_container"
 
const RETURN_TYPE = 'return_type'
 
const RETURN_PATHNAME = 'return_path'
 
const RETURN_OPENMODE = 'return_openmode'
 
const RETURN_PATH = 1
 return types for fetch
 
const RETURN_STRING = 2
 
const RETURN_STREAM = 3
 
const RETURN_LIST = 1
 return types for list
 
const RETURN_NAMES = 2
 
const DEFAULT_HOST = Zend_Service_WindowsAzure_Storage::URL_CLOUD_BLOB
 
- Public Attributes inherited from Zend_Cloud_StorageService_Adapter
const HTTP_ADAPTER = 'http_adapter'
 

Protected Attributes

 $_container
 
 $_storageClient = null
 

Constructor & Destructor Documentation

__construct (   $options = array())

Creates a new Zend_Cloud_Storage_WindowsAzure instance.

Parameters
array | Zend_Config$optionsOptions for the Zend_Cloud_Storage_WindowsAzure instance

Member Function Documentation

copyItem (   $sourcePath,
  $destinationPath,
  $options = null 
)

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

Parameters
string$sourcePath
string$destinationPath
array$options
Returns
void

Implements Zend_Cloud_StorageService_Adapter.

deleteContainer ( )

Delete container.

Returns
void
deleteItem (   $path,
  $options = null 
)

Delete an item in the storage service.

Parameters
string$path
array$options
Returns
void

Implements Zend_Cloud_StorageService_Adapter.

deleteMetadata (   $path,
  $options = null 
)

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

Parameters
string$path
array$options
Returns
void
fetchItem (   $path,
  $options = null 
)

Get an item from the storage service.

Parameters
string$path
array$options
Returns
mixed

Implements Zend_Cloud_StorageService_Adapter.

fetchMetadata (   $path,
  $options = null 
)

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

Parameters
string$path
array$options
Returns
array

Implements Zend_Cloud_StorageService_Adapter.

getClient ( )

Get the concrete adapter.

Returns
Zend_Service_Azure_Storage_Blob

Implements Zend_Cloud_StorageService_Adapter.

listItems (   $path,
  $options = null 
)

List items in the given directory in the storage service.

The $path must be a directory

Parameters
string$pathMust be a directory
array$options
Returns
array A list of item names

Implements Zend_Cloud_StorageService_Adapter.

moveItem (   $sourcePath,
  $destinationPath,
  $options = null 
)

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

Parameters
string$sourcePath
string$destinationPath
array$options
Returns
void

Implements Zend_Cloud_StorageService_Adapter.

renameItem (   $path,
  $name,
  $options = null 
)

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

Parameters
string$path
string$name
array$options
Returns
void

Implements Zend_Cloud_StorageService_Adapter.

storeItem (   $destinationPath,
  $data,
  $options = null 
)

Store an item in the storage service.

WARNING: This operation overwrites any item that is located at $destinationPath.

Parameters
string$destinationPath
mixed$data
array$options
Returns
boolean

Implements Zend_Cloud_StorageService_Adapter.

storeMetadata (   $destinationPath,
  $metadata,
  $options = null 
)

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

WARNING: This operation overwrites any metadata that is located at $destinationPath.

Parameters
string$destinationPath
array$options
Returns
void

Implements Zend_Cloud_StorageService_Adapter.

Member Data Documentation

$_container
protected
$_storageClient = null
protected
const ACCOUNT_KEY = 'storage_accountkey'
const ACCOUNT_NAME = 'storage_accountname'
const CONTAINER = "storage_container"
const HOST = "storage_host"
const PROXY_CREDENTIALS = "storage_proxy_credentials"
const PROXY_HOST = "storage_proxy_host"
const PROXY_PORT = "storage_proxy_port"
const RETURN_LIST = 1

return types for list

const RETURN_NAMES = 2
const RETURN_OPENMODE = 'return_openmode'
const RETURN_PATH = 1

return types for fetch

const RETURN_PATHNAME = 'return_path'
const RETURN_STREAM = 3
const RETURN_STRING = 2
const RETURN_TYPE = 'return_type'