Cloud/StorageService/Adapter/Rackspace.php
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 [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Cloud_StorageService
- Subpackage
- Adapter
\Zend_Cloud_StorageService_Adapter_Rackspace
Adapter for Rackspace cloud storage
- Implements
- \Zend_Cloud_StorageService_Adapter
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
HTTP_ADAPTER
= 'http_adapter'- Inherited_from
- \Zend_Cloud_StorageService_Adapter::HTTP_ADAPTER
Properties

string $_container = 'default'Container in which files are stored
'default'Details- Type
- string
Methods

__construct(array | \Traversable $options = array()) : voidConstructor
| Name | Type | Description |
|---|---|---|
| $options | array | \Traversable |

copyItem(string $sourcePath, $destinationPath, array $options = null) : voidCopy an item in the storage service to a given path.
The $destinationPath must be a directory.
| Name | Type | Description |
|---|---|---|
| $sourcePath | string | |
| $destinationPath | ||
| $options | array |

deleteItem(string $path, array $options = null) : voidDelete an item in the storage service.
| Name | Type | Description |
|---|---|---|
| $path | string | |
| $options | array |

deleteMetadata(string $path, array $metadata = null, array $options = null) : voidDelete a key/value array of metadata at the given path.
| Name | Type | Description |
|---|---|---|
| $path | string | |
| $metadata | array |
|
| $options | array |

fetchItem(string $path, array $options = null) : mixedGet an item from the storage service.
| Name | Type | Description |
|---|---|---|
| $path | string | |
| $options | array |
| Type | Description |
|---|---|
| mixed |

fetchMetadata(string $path, array $options = null) : arrayGet a key/value array of metadata for the given path.
| Name | Type | Description |
|---|---|---|
| $path | string | |
| $options | array |
| Type | Description |
|---|---|
| array | An associative array of key/value pairs specifying the metadata for this object. If no metadata exists, an empty array is returned. |

getClient() : \Zend_Service_Rackspace_FileGet the concrete client.
| Type | Description |
|---|---|
| \Zend_Service_Rackspace_File |

listItems(string $path, array $options = null) : arrayReturn an array of the items contained in the given path.
The items returned are the files or objects that in the specified path.
| Name | Type | Description |
|---|---|---|
| $path | string | |
| $options | array |
| Type | Description |
|---|---|
| array |

moveItem(string $sourcePath, $destinationPath, array $options = null) : voidMove 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.
| Name | Type | Description |
|---|---|---|
| $sourcePath | string | |
| $destinationPath | ||
| $options | array |

renameItem(string $path, string $name, array $options = null) : voidRename an item in the storage service to a given name.
| Name | Type | Description |
|---|---|---|
| $path | string | |
| $name | string | |
| $options | array |

storeItem(string $destinationPath, mixed $data, array $options = null) : voidStore an item in the storage service.
WARNING: This operation overwrites any item that is located at $destinationPath.
| Name | Type | Description |
|---|---|---|
| $destinationPath | string | |
| $data | mixed | |
| $options | array |

storeMetadata(string $destinationPath, array $metadata, array $options = null) : voidStore a key/value array of metadata at the given path.
WARNING: This operation overwrites any metadata that is located at $destinationPath.
| Name | Type | Description |
|---|---|---|
| $destinationPath | string | |
| $metadata | array | associative array specifying the key/value pairs for the metadata. |
| $options | array |