Cloud/StorageService/Adapter/S3.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 [email protected] so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Cloud  
Subpackage
StorageService  

\Zend_Cloud_StorageService_Adapter_S3

Package: Zend_Cloud\StorageService
S3 adapter for unstructured cloud storage.
Implements
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

>VConstant  BUCKET_NAME = 'bucket_name'
>VConstant  BUCKET_AS_DOMAIN = 'bucket_as_domain?'
>VConstant  FETCH_STREAM = 'fetch_stream'
>VConstant  METADATA = 'metadata'
>VConstant  AWS_ACCESS_KEY = 'aws_accesskey'
AWS constants
>VConstant  AWS_SECRET_KEY = 'aws_secretkey'

Properties

>VPropertyprotected$_defaultBucketAsDomain = false
Default valuefalseDetails
Type
n/a
>VPropertyprotected$_defaultBucketName = null
Default valuenullDetails
Type
n/a
>VPropertyprotected\Zend_Service_Amazon_S3 $_s3
S3 service instance.

Methods

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

Constructor

Parameters
NameTypeDescription
$optionsarray | \Zend_Config
methodprotected_getFullPath(string $path, array $options) : void

Get full path, including bucket, for an object

Parameters
NameTypeDescription
$pathstring
$optionsarray
methodpubliccopyItem(string $sourcePath,  $destinationPath, array $options = array()) : 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
Details
TODO
Support streams for those services that don't support natively  
methodpublicdeleteItem(string $path, array $options = array()) : void

Delete an item in the storage service.

Parameters
NameTypeDescription
$pathstring
$optionsarray
methodpublicdeleteMetadata(string $path) : void

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

Parameters
NameTypeDescription
$pathstring
methodpublicfetchItem(string $path, array $options = array()) : string

Get an item from the storage service.

Parameters
NameTypeDescription
$pathstring
$optionsarray
Returns
TypeDescription
string
Details
TODO
Support streams  
methodpublicfetchMetadata(string $path, array $options = array()) : array

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

Parameters
NameTypeDescription
$pathstring
$optionsarray
Returns
TypeDescription
array
methodpublicgetClient() : \Zend_Service_Amazon_S3

Get the concrete client.

Returns
TypeDescription
\Zend_Service_Amazon_S3
methodpubliclistItems(string $path, array $options = null) : array

List items in the given directory in the storage service

The $path must be a directory
Parameters
NameTypeDescription
$pathstring

Must be a directory

$optionsarray
Returns
TypeDescription
arrayA list of item names
methodpublicmoveItem(string $sourcePath,  $destinationPath, array $options = array()) : void

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

Parameters
NameTypeDescription
$sourcePathstring
$destinationPath
$optionsarray
Details
TODO
Support streams for those services that don't support natively  
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, string | resource $data, array $options = array()) : void

Store an item in the storage service.

WARNING: This operation overwrites any item that is located at $destinationPath.
Parameters
NameTypeDescription
$destinationPathstring
$datastring | resource
$optionsarray
Details
TODO
Support streams  
methodpublicstoreMetadata(string $destinationPath,  $metadata, array $options = array()) : 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
$metadata
$optionsarray
Documentation was generated by phpDocumentor 2.2.0 .