Zend_Service_Amazon_S3Amazon S3 PHP connection class
Located in /Service/Amazon/S3.php (line 43)
Zend_Service_Abstract | --Zend_Service_Amazon_Abstract | --Zend_Service_Amazon_S3
Zend_Service_Amazon_S3
__construct
([string $accessKey = null], [string $secretKey = null], [string $region = null])
Zend_Http_Response_Stream|false
getObjectStream
(string $object, [string $streamfile = null], [bool $paidobject = false])
Zend_Http_Response
_makeRequest
(string $method, [string $path = ''], [array $params = null], [array $headers = array()], [string|resource $data = null])
static array
$_wrapperClients
= array() (line 50)
Store for stream wrapper clients
Zend_Uri_Http
$_endpoint
(line 57)
Endpoint for the service
Inherited from Zend_Service_Amazon_Abstract
Zend_Service_Amazon_Abstract::$_accessKey
Zend_Service_Amazon_Abstract::$_defaultAccessKey
Zend_Service_Amazon_Abstract::$_defaultSecretKey
Zend_Service_Amazon_Abstract::$_secretKey
Inherited from Zend_Service_Abstract
Zend_Service_Abstract::$_httpClient
static getMimeType (line 681)
Attempt to get the content-type of a file based on the extension
static getWrapperClient (line 867)
Get wrapper client for stream type
Constructor __construct (line 109)
Constructor
addSignature (line 610)
Add the S3 Authorization signature to the request headers
cleanBucket (line 268)
Remove all objects in the bucket.
createBucket (line 157)
Add a new bucket
getBuckets (line 244)
List the S3 buckets
getInfo (line 219)
Get metadata information for a given object
getObject (line 343)
Get an object
getObjectsByBucket (line 294)
List the objects in a bucket.
Provides the list of object keys that are contained in the bucket. Valid params include the following. prefix - Limits the response to keys which begin with the indicated prefix. You can use prefixes to separate a bucket into different sets of keys in a way similar to how a file system uses folders. marker - Indicates where in the bucket to begin listing. The list will only include keys that occur lexicographically after marker. This is convenient for pagination: To get the next page of results use the last key of the current page as the marker. max-keys - The maximum number of keys you'd like to see in the response body. The server might return fewer than this many keys, but will not return more. delimiter - Causes keys that contain the same string between the prefix and the first occurrence of the delimiter to be rolled up into a single result element in the CommonPrefixes collection. These rolled-up keys are not returned elsewhere in the response.
getObjectStream (line 370)
Get an object using streaming
Can use either provided filename for storage or create a temp file if none provided.
isBucketAvailable (line 178)
Checks if a given bucket name is available
isObjectAvailable (line 191)
Checks if a given object exists
putFile (line 434)
Put file to S3 as object
putFileStream (line 464)
Put file to S3 as object, using streaming
putObject (line 397)
Upload an object by a PHP string
registerAsClient (line 843)
Register this object as stream wrapper client
registerStreamWrapper (line 878)
Register this object as stream wrapper
removeBucket (line 205)
Remove a given bucket. All objects in the bucket must be removed prior to removing the bucket.
removeObject (line 496)
Remove a given object
unregisterAsClient (line 855)
Unregister this object as stream wrapper client
unregisterStreamWrapper (line 895)
Unregister this object as stream wrapper
_fixupObjectName (line 322)
Make sure the object name is valid
_makeRequest (line 515)
Make a request to Amazon S3
_validBucketName (line 122)
Verify if the bucket name is valid
Inherited From Zend_Service_Amazon_Abstract
Zend_Service_Amazon_Abstract::__construct()
Zend_Service_Amazon_Abstract::setKeys()
Zend_Service_Amazon_Abstract::_getAccessKey()
Zend_Service_Amazon_Abstract::_getSecretKey()
Inherited From Zend_Service_Abstract
Zend_Service_Abstract::getHttpClient()
Zend_Service_Abstract::setHttpClient()
S3_ACL_AUTH_READ
= 'authenticated-read'
(line 64)
S3_ACL_HEADER
= 'x-amz-acl'
(line 67)
S3_ACL_PRIVATE
= 'private'
(line 61)
S3_ACL_PUBLIC_READ
= 'public-read'
(line 62)
S3_ACL_PUBLIC_WRITE
= 'public-read-write'
(line 63)
S3_CONTENT_TYPE_HEADER
= 'Content-Type'
(line 68)
S3_ENDPOINT
= 's3.amazonaws.com'
(line 59)
S3_REQUESTPAY_HEADER
= 'x-amz-request-payer'
(line 66)
Documentation generated on Mon, 21 Jun 2010 15:43:22 -0400 by phpDocumentor 1.4.3