Zend Framework
1.12
|
Public Member Functions | |
__construct ($options=array()) | |
Constructor. | |
fetchItem ($path, $options=null) | |
Get an item from the storage service. | |
storeItem ($destinationPath, $data, $options=null) | |
Store an item in the storage service. | |
deleteItem ($path, $options=null) | |
Delete an item in the storage service. | |
copyItem ($sourcePath, $destinationPath, $options=null) | |
Copy an item in the storage service to a given path. | |
moveItem ($sourcePath, $destinationPath, $options=null) | |
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. | |
fetchMetadata ($path, $options=null) | |
Get a key/value array of metadata for the given path. | |
storeMetadata ($destinationPath, $metadata, $options=null) | |
Store a key/value array of metadata at the given path. | |
deleteMetadata ($path, $metadata=null, $options=null) | |
Delete a key/value array of metadata at the given path. | |
listItems ($path, $options=null) | |
Return an array of the items contained in the given path. | |
getClient () | |
Get the concrete client. | |
![]() | |
deleteMetadata ($path) | |
Delete a key/value array of metadata at the given path. | |
Public Attributes | |
const | USER = 'user' |
const | API_KEY = 'key' |
const | REMOTE_CONTAINER = 'container' |
const | DELETE_METADATA_KEY = 'ZF_metadata_deleted' |
![]() | |
const | HTTP_ADAPTER = 'http_adapter' |
Protected Attributes | |
$_rackspace | |
$_container = 'default' | |
__construct | ( | $options = array() | ) |
Constructor.
array | Traversable | $options |
copyItem | ( | $sourcePath, | |
$destinationPath, | |||
$options = null |
|||
) |
Copy an item in the storage service to a given path.
string | $sourcePath | |
string | $destination | path |
array | $options |
Implements Zend_Cloud_StorageService_Adapter.
deleteItem | ( | $path, | |
$options = null |
|||
) |
Delete an item in the storage service.
string | $path | |
array | $options |
Implements Zend_Cloud_StorageService_Adapter.
deleteMetadata | ( | $path, | |
$metadata = null , |
|||
$options = null |
|||
) |
Delete a key/value array of metadata at the given path.
string | $path | |
array | $metadata | - 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. |
array | $options |
fetchItem | ( | $path, | |
$options = null |
|||
) |
Get an item from the storage service.
string | $path | |
array | $options |
Implements Zend_Cloud_StorageService_Adapter.
fetchMetadata | ( | $path, | |
$options = null |
|||
) |
Get a key/value array of metadata for the given path.
string | $path | |
array | $options |
Implements Zend_Cloud_StorageService_Adapter.
getClient | ( | ) |
Get the concrete client.
Implements Zend_Cloud_StorageService_Adapter.
listItems | ( | $path, | |
$options = null |
|||
) |
Return an array of the items contained in the given path.
The items returned are the files or objects that in the specified path.
string | $path | |
array | $options |
Implements Zend_Cloud_StorageService_Adapter.
moveItem | ( | $sourcePath, | |
$destinationPath, | |||
$options = null |
|||
) |
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.
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 = null |
|||
) |
Store an item in the storage service.
string | $destinationPath | |
mixed | $data | |
array | $options |
Implements Zend_Cloud_StorageService_Adapter.
storeMetadata | ( | $destinationPath, | |
$metadata, | |||
$options = null |
|||
) |
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 | $metadata | associative array specifying the key/value pairs for the metadata. |
array | $options |
Implements Zend_Cloud_StorageService_Adapter.
|
protected |
|
protected |
const API_KEY = 'key' |
const DELETE_METADATA_KEY = 'ZF_metadata_deleted' |
const REMOTE_CONTAINER = 'container' |
const USER = 'user' |