Omeka_Storage_Adapter_ZendS3
Package: Storage\Adapter
- class Omeka_Storage_Adapter_ZendS3
implements Omeka_Storage_Adapter_AdapterInterface
Cloud storage adapter for Amazon S3, using Zend’s built-in service.
Caveat: Zend’s storage adapter currently does not function correctly with buckets that are validly-named, but use characters that cannot appear in domain names.
- Omeka_Storage_Adapter_ZendS3::__construct($options = array())
Set options for the storage adapter.
- Parameters:
$options (
array
)
- Omeka_Storage_Adapter_ZendS3::setUp()
- Omeka_Storage_Adapter_ZendS3::canStore()
- Omeka_Storage_Adapter_ZendS3::store($source, $dest)
Move a local file to S3 storage.
- Parameters:
$source (
string
) – Local filesystem path to file.$dest (
string
) – Destination path.
- Omeka_Storage_Adapter_ZendS3::move($source, $dest)
Move a file between two “storage” locations.
- Parameters:
$source (
string
) – Original stored path.$dest (
string
) – Destination stored path.
- Omeka_Storage_Adapter_ZendS3::delete($path)
Remove a “stored” file.
- Parameters:
$path (
string
)
- Omeka_Storage_Adapter_ZendS3::getUri($path)
Get a URI for a “stored” file.
- Parameters:
$path (
string
)- Returns:
string URI
- Omeka_Storage_Adapter_ZendS3::getS3Service()
Return the service object being used for S3 requests.
- Returns:
Zend_Service_Amazon_S3
- Omeka_Storage_Adapter_ZendS3::_getBucketName()
Get the name of the bucket files should be stored in.
- Returns:
string Bucket name
- Omeka_Storage_Adapter_ZendS3::_getObjectName($path)
Get the object name. Zend’s S3 service requires you to build the object name by prepending the name of the target bucket.
- Parameters:
$path (
string
)- Returns:
string Object name.
- Omeka_Storage_Adapter_ZendS3::_getExpiration()
Normalizes and returns the expiration time.
Converts to integer and returns zero for all non-positive numbers.
- Returns:
int