Cloud/StorageService/Adapter/Rackspace.php

Show: inherited
Table of Contents

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

Package: Zend\Cloud\StorageService\Adapter

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

Constant  USER = 'user'
Constant  API_KEY = 'key'
Constant  REMOTE_CONTAINER = 'container'
Constant  DELETE_METADATA_KEY = 'ZF_metadata_deleted'
Constant  HTTP_ADAPTER = 'http_adapter'

Properties

Propertyprotectedstring $_container = 'default'

Container in which files are stored

Default value'default'Details
Type
string
Propertyprotected\Zend_Service_Rackspace_Files $_rackspace =

The Rackspace adapter

Methods

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

Constructor

Parameters
Name Type Description
$options array | \Traversable
methodpubliccopyItem(string $sourcePath,  $destinationPath, array $options = null) : void

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

The $destinationPath must be a directory.

Parameters
Name Type Description
$sourcePath string
$destinationPath
$options array
methodpublicdeleteItem(string $path, array $options = null) : void

Delete an item in the storage service.

Parameters
Name Type Description
$path string
$options array
methodpublicdeleteMetadata(string $path, array $metadata = null, array $options = null) : void

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

Parameters
Name Type Description
$path string
$metadata array
  • 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.
$options array
methodpublicfetchItem(string $path, array $options = null) : mixed

Get an item from the storage service.

Parameters
Name Type Description
$path string
$options array
Returns
Type Description
mixed
methodpublicfetchMetadata(string $path, array $options = null) : array

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

Parameters
Name Type Description
$path string
$options array
Returns
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.
methodprivategetAllFolders( $path,  $resultArray) : void

Parameters
Name Type Description
$path
$resultArray
methodpublicgetClient() : \Zend_Service_Rackspace_File

Get the concrete client.

Returns
Type Description
\Zend_Service_Rackspace_File
methodpubliclistItems(string $path, array $options = null) : array

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
Name Type Description
$path string
$options array
Returns
Type Description
array
methodpublicmoveItem(string $sourcePath,  $destinationPath, array $options = null) : void

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
Name Type Description
$sourcePath string
$destinationPath
$options array
methodpublicrenameItem(string $path, string $name, array $options = null) : void

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

Parameters
Name Type Description
$path string
$name string
$options array
methodpublicstoreItem(string $destinationPath, mixed $data, array $options = null) : void

Store an item in the storage service.

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

Parameters
Name Type Description
$destinationPath string
$data mixed
$options array
methodpublicstoreMetadata(string $destinationPath, array $metadata, array $options = null) : void

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

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

Parameters
Name Type Description
$destinationPath string
$metadata array

associative array specifying the key/value pairs for the metadata.

$options array
Documentation was generated by phpDocumentor 2.0.0a8.