Zend Framework
1.12
|
Public Member Functions | |
__construct ($options=array()) | |
Constructor. | |
fetchItem ($path, $options=array()) | |
Get an item from the storage service. | |
storeItem ($destinationPath, $data, $options=array()) | |
Store an item in the storage service. | |
deleteItem ($path, $options=array()) | |
Delete an item in the storage service. | |
copyItem ($sourcePath, $destinationPath, $options=array()) | |
Copy an item in the storage service to a given path. | |
moveItem ($sourcePath, $destinationPath, $options=array()) | |
Move an item in the storage service to a given path. | |
renameItem ($path, $name, $options=null) | |
Rename an item in the storage service to a given name. | |
listItems ($path, $options=null) | |
List items in the given directory in the storage service. | |
fetchMetadata ($path, $options=array()) | |
Get a key/value array of metadata for the given path. | |
storeMetadata ($destinationPath, $metadata, $options=array()) | |
Store a key/value array of metadata at the given path. | |
deleteMetadata ($path) | |
Delete a key/value array of metadata at the given path. | |
getClient () | |
Get the concrete client. | |
Public Attributes | |
const | LOCAL_DIRECTORY = 'local_directory' |
Options array keys for the file system adapter. | |
![]() | |
const | HTTP_ADAPTER = 'http_adapter' |
Protected Attributes | |
$_directory = null | |
__construct | ( | $options = array() | ) |
copyItem | ( | $sourcePath, | |
$destinationPath, | |||
$options = array() |
|||
) |
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.
Support streams for those services that don't support natively
string | $sourcePath | |
string | $destination | path |
array | $options |
Implements Zend_Cloud_StorageService_Adapter.
deleteItem | ( | $path, | |
$options = array() |
|||
) |
Delete an item in the storage service.
string | $path | |
array | $options |
Implements Zend_Cloud_StorageService_Adapter.
deleteMetadata | ( | $path | ) |
Delete a key/value array of metadata at the given path.
string | $path | |
array | $options |
Implements Zend_Cloud_StorageService_Adapter.
fetchItem | ( | $path, | |
$options = array() |
|||
) |
Get an item from the storage service.
TODO: Support streaming
string | $path | |
array | $options |
Implements Zend_Cloud_StorageService_Adapter.
fetchMetadata | ( | $path, | |
$options = array() |
|||
) |
Get a key/value array of metadata for the given path.
string | $path | |
array | $options |
Implements Zend_Cloud_StorageService_Adapter.
getClient | ( | ) |
listItems | ( | $path, | |
$options = null |
|||
) |
List items in the given directory in the storage service.
The $path must be a directory
string | $path | Must be a directory |
array | $options |
Implements Zend_Cloud_StorageService_Adapter.
moveItem | ( | $sourcePath, | |
$destinationPath, | |||
$options = array() |
|||
) |
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.
Support streams for those services that don't support natively
string | $sourcePath | |
string | $destination | path |
array | $options |
Implements Zend_Cloud_StorageService_Adapter.
renameItem | ( | $path, | |
$name, | |||
$options = null |
|||
) |
Rename an item in the storage service to a given name.
string | $path | |
string | $name | |
array | $options |
Implements Zend_Cloud_StorageService_Adapter.
storeItem | ( | $destinationPath, | |
$data, | |||
$options = array() |
|||
) |
Store an item in the storage service.
WARNING: This operation overwrites any item that is located at $destinationPath.
Support streams
string | $destinationPath | |
mixed | $data | |
array | $options |
Implements Zend_Cloud_StorageService_Adapter.
storeMetadata | ( | $destinationPath, | |
$metadata, | |||
$options = array() |
|||
) |
Store a key/value array of metadata at the given path.
WARNING: This operation overwrites any metadata that is located at $destinationPath.
string | $destinationPath | |
array | $options |
Implements Zend_Cloud_StorageService_Adapter.
|
protected |
const LOCAL_DIRECTORY = 'local_directory' |
Options array keys for the file system adapter.