tasks/ext/Service/Amazon/S3.php
\Service_Amazon_S3
Package: phing\tasks\ext
Abstract Service_Amazon_S3 class.
Provides common methods and properties to all of the S3 tasks
- Parent(s)
- \Service_Amazon < \Task < \ProjectComponent
- Children
- \S3PutTask
- \S3GetTask
- Abstract
- Author
- Andrei Serdeliuc
- Extends
- Service_Amazon
- Version
- $ID$
Properties
Methods

getBucketInstance(
)
:
\Services_Amazon_S3_Resource_BucketReturns an instance of Services_Amazon_S3_Resource_Bucket
Returns
Details
| Type | Description |
|---|---|
| \Services_Amazon_S3_Resource_Bucket |
- Access
- public

getClient(
)
:
\Services_Amazon_S3We only instantiate the client once per task call
Returns
Details
| Type | Description |
|---|---|
| \Services_Amazon_S3 |
- Access
- public

getObjectContents(
string $object
)
:
mixedGet the contents of an object (by it's name)
Parameters
Returns
Details
| Name | Type | Description |
|---|---|---|
| $object | string |
| Type | Description |
|---|---|
| mixed |
- Access
- public

getObjectInstance(
mixed $object
)
:
\Services_Amazon_S3_Resource_ObjectReturns an instance of Services_Amazon_S3_Resource_Object
Parameters
Returns
Details
| Name | Type | Description |
|---|---|---|
| $object | mixed |
| Type | Description |
|---|---|
| \Services_Amazon_S3_Resource_Object |
- Access
- public

isBucketAvailable(
)
:
boolCheck if the current bucket is available
Returns
Details
| Type | Description |
|---|---|
| bool |
- Access
- public

isObjectAvailable(
mixed $object
)
:
boolCheck if the object already exists in the current bucket
Parameters
Returns
Details
| Name | Type | Description |
|---|---|---|
| $object | mixed |
| Type | Description |
|---|---|
| bool |
- Access
- public