FileSystem adapter 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
Constructor
__construct(array|\Zend_Config $options = array()
) : void
Parameters
$options
array
\Zend_Config
Copy an item in the storage service to a given path.
copyItem(string $sourcePath, $destinationPath, array $options = array()
) : void
WARNING: This operation is very expensive for services that do not
support copying an item natively.
TODO |
Support streams for those services that don't support natively |
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 = array()
) : 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 = array()
) : false | string
inherited_from |
\Zend_Cloud_StorageService_Adapter::fetchItem() |
Parameters
$path
string
$options
array
Returns
false
string
Get the concrete client.
getClient() : \strings
inherited_from |
\Zend_Cloud_StorageService_Adapter::getClient() |
Returns
\strings
List items in the given directory in the storage service
listItems(string $path, array $options = null
) : array
The $path must be a directory
inherited_from |
\Zend_Cloud_StorageService_Adapter::listItems() |
Parameters
$path
string
Must be a directory
$options
array
Returns
array
A list of item names
Move an item in the storage service to a given path.
moveItem(string $sourcePath, $destinationPath, array $options = array()
) : void
WARNING: This operation is very expensive for services that do not
support moving an item natively.
TODO |
Support streams for those services that don't support 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 = array()
) : void
WARNING: This operation overwrites any item that is located at
$destinationPath.
TODO |
Support streams |
inherited_from |
\Zend_Cloud_StorageService_Adapter::storeItem() |
Parameters
$destinationPath
string
$data
mixed
$options
array
Return the full path for the file.
_getFullPath(string $path) : string
Parameters
$path
string
Returns
string
Properties
The directory for the data
$_directory : string
Constants
Options array keys for the file system adapter.
LOCAL_DIRECTORY = 'local_directory'