Adapter for Rackspace cloud storage

category Zend
package Zend_Cloud_StorageService
subpackage Adapter
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Constructor

__construct(array|\Traversable $options = array()) : void

Parameters

$options

array\Traversable

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

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

The $destinationPath must be a directory.

inherited_from \Zend_Cloud_StorageService_Adapter::copyItem()

Parameters

$sourcePath

string

$destinationPath

$options

array

Delete an item in the storage service.

deleteItem(string $path, array $options = null) : void
inherited_from \Zend_Cloud_StorageService_Adapter::deleteItem()

Parameters

$path

string

$options

array

Get an item from the storage service.

fetchItem(string $path, array $options = null) : mixed
inherited_from \Zend_Cloud_StorageService_Adapter::fetchItem()

Parameters

$path

string

$options

array

Returns

mixed

Get the concrete client.

getClient() : \Zend_Service_Rackspace_File
inherited_from \Zend_Cloud_StorageService_Adapter::getClient()

Returns

\Zend_Service_Rackspace_File

Return an array of the items contained in the given path. The items returned are the files or objects that in the specified path.

listItems(string $path, array $options = null) : array

The $path must be a directory

inherited_from \Zend_Cloud_StorageService_Adapter::listItems()

Parameters

$path

string

$options

array

Returns

array

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

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

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

inherited_from \Zend_Cloud_StorageService_Adapter::moveItem()

Parameters

$sourcePath

string

$destinationPath

$options

array

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

renameItem(string $path, string $name, array $options = null) : void
inherited_from \Zend_Cloud_StorageService_Adapter::renameItem()

Parameters

$path

string

$name

string

$options

array

Store an item in the storage service.

storeItem(string $destinationPath, mixed $data, array $options = null) : void

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

inherited_from \Zend_Cloud_StorageService_Adapter::storeItem()

Parameters

$destinationPath

string

$data

mixed

$options

array

getAllFolders()

getAllFolders($path, $resultArray) 

Parameters

$path

$resultArray

 Properties

 

Container in which files are stored

$_container : string

Default

'default'
 

The Rackspace adapter

$_rackspace : \Zend_Service_Rackspace_Files

Default

 Constants

 

API_KEY

API_KEY = 'key' 
   

REMOTE_CONTAINER

REMOTE_CONTAINER = 'container' 
 

USER

USER = 'user'