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

Public Member Functions

 __construct ($options=array())
 Constructor.
 
 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.
 
 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, $metadata=null, $options=null)
 Delete a key/value array of metadata at the given path.
 
 listItems ($path, $options=null)
 Return an array of the items contained in the given path.
 
 getClient ()
 Get the concrete client.
 
- 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 USER = 'user'
 
const API_KEY = 'key'
 
const REMOTE_CONTAINER = 'container'
 
const DELETE_METADATA_KEY = 'ZF_metadata_deleted'
 
- Public Attributes inherited from Zend_Cloud_StorageService_Adapter
const HTTP_ADAPTER = 'http_adapter'
 

Protected Attributes

 $_rackspace
 
 $_container = 'default'
 

Constructor & Destructor Documentation

__construct (   $options = array())

Constructor.

Parameters
array | Traversable$options
Returns
void

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.

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,
  $metadata = null,
  $options = null 
)

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

Parameters
string$path
array$metadata- An associative array specifying the key/value pairs for the metadata to be deleted. If null, all metadata associated with the object will be deleted.
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 An associative array of key/value pairs specifying the metadata for this object. If no metadata exists, an empty array is returned.

Implements Zend_Cloud_StorageService_Adapter.

getClient ( )

Get the concrete client.

Returns
Zend_Service_Rackspace_File

Implements Zend_Cloud_StorageService_Adapter.

listItems (   $path,
  $options = null 
)

Return an array of the items contained in the given path.

The items returned are the files or objects that in the specified path.

Parameters
string$path
array$options
Returns
array

Implements Zend_Cloud_StorageService_Adapter.

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

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

WARNING: This operation is *very* expensive for services that do not support moving an item natively.

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.

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

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$metadataassociative array specifying the key/value pairs for the metadata.
array$options
Returns
void

Implements Zend_Cloud_StorageService_Adapter.

Member Data Documentation

$_container = 'default'
protected
$_rackspace
protected
const API_KEY = 'key'
const DELETE_METADATA_KEY = 'ZF_metadata_deleted'
const REMOTE_CONTAINER = 'container'
const USER = 'user'