Cloud/StorageService/Adapter/Nirvanix.php

Show: PublicProtectedPrivateinherited
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 license@zend.com 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  
Subpackage
StorageService  

\Zend_Cloud_StorageService_Adapter_Nirvanix

Package: Zend\Cloud\StorageService
Adapter for Nirvanix 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

>VConstant  USERNAME = 'auth_username'
>VConstant  PASSWORD = 'auth_password'
>VConstant  APP_KEY = 'auth_accesskey'
>VConstant  REMOTE_DIRECTORY = 'remote_directory'
>VConstant  HTTP_ADAPTER = 'http_adapter'

Properties

>VPropertyprotected$_imfNs
Details
Type
n/a
>VPropertyprotected$_metadataNs
Details
Type
n/a
>VPropertyprotected\Zend_Service_Nirvanix $_nirvanix
The Nirvanix adapter
>VPropertyprotected$_remoteDirectory
Details
Type
n/a
>VPropertyprivate$maxPageSize = 500
Default value500Details
Type
n/a

Methods

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

Constructor

Parameters
NameTypeDescription
$optionsarray | \Zend_Config
methodprivate_getFullPath(string $path) : string

Get full path to an object

Parameters
NameTypeDescription
$pathstring
Returns
TypeDescription
string
methodpubliccopyItem(string $sourcePath,  $destinationPath, array $options = null) : void

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

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

Parameters
NameTypeDescription
$sourcePathstring
$destinationPath
$optionsarray
methodpublicdeleteItem(string $path, array $options = null) : void

Delete an item in the storage service.

Parameters
NameTypeDescription
$pathstring
$optionsarray
methodpublicdeleteMetadata(string $path, array $metadata = null, array $options = null) : void

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

Parameters
NameTypeDescription
$pathstring
$metadataarray
  • 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.
$optionsarray
methodpublicfetchItem(string $path, array $options = null) : mixed

Get an item from the storage service.

Parameters
NameTypeDescription
$pathstring
$optionsarray
Returns
TypeDescription
mixed
methodpublicfetchMetadata(string $path, array $options = null) : array

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

Parameters
NameTypeDescription
$pathstring
$optionsarray
Returns
TypeDescription
arrayAn 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
NameTypeDescription
$path
$resultArray
methodpublicgetClient() : \Zend_Service_Nirvanix

Get the concrete client.

Returns
TypeDescription
\Zend_Service_Nirvanix
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
NameTypeDescription
$pathstring
$optionsarray
Returns
TypeDescription
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
NameTypeDescription
$sourcePathstring
$destinationPath
$optionsarray
methodpublicrenameItem(string $path, string $name, array $options = null) : void

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

Parameters
NameTypeDescription
$pathstring
$namestring
$optionsarray
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
NameTypeDescription
$destinationPathstring
$datamixed
$optionsarray
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
NameTypeDescription
$destinationPathstring
$metadataarray

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

$optionsarray
Documentation was generated by phpDocumentor 2.0.0a12.