Common interface for unstructured cloud storage.

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

 Methods

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.

Parameters

$sourcePath

string

$destinationPath

$options

array

Delete an item in the storage service.

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

Parameters

$path

string

$options

array

Get an item from the storage service.

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

Parameters

$path

string

$options

array

Returns

mixed

Get the concrete client.

getClient() 

List items in the given directory in the storage service

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

The $path must be a directory

Parameters

$path

string

Must be a directory

$options

array

Returns

arrayA list of item names

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

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

The $destinationPath must be a directory.

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

Parameters

$path

string

$name

string

$options

array

Store an item in the storage service.

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

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

Parameters

$destinationPath

string

$data

mixed

$options

array

Returns

boolean

 Constants

 

HTTP_ADAPTER

HTTP_ADAPTER = 'http_adapter'