# tasks/ext/Service/Amazon/S3/S3PutTask.php

## \S3PutTask
jump to top

Package: phing\tasks\ext

Stores an object on S3

Parent(s)
  \Service_Amazon_S3 < \Service_Amazon < \Task < \ProjectComponent
Author
  Andrei Serdeliuc
Extends
  Service_Amazon_S3
Version
  $Id: S3PutTask.php 1184 2011-06-22 13:36:56Z mrook $

### Properties

`mixed $_content= 'null'`

Content we're trying to upload

The user can specify either a file to upload or just a bit of content

(default value: null)

Default value `null` Details

Type
  mixed
Access
  protected

`bool $_createBuckets= 'false'`

Whether to try to create buckets or not

(default value: false)

Default value `false` Details

Type
  bool
Access
  protected

`array $_filesets= 'array()'`

Collection of filesets Used for uploading multiple files

(default value: array())

Default value `array()`Details

Type
  array
Access
  protected

`string $_source= 'null'`

File we're trying to upload

(default value: null)

Default value `null` Details

Type
  string
Access
  protected

### Methods

`__get( ) : void`

`__isset( ) : void`

`__set( ) : void`

`createBucket( ) : void`

`createFileset( ) : \FileSet`

creator for _filesets

Returns

Type | Description
--- | ---
\FileSet |

Details

Access
  public

`execute( ) : void`

Store the object on S3

Details

Access
  public

`getBucket( ) : void`

`getBucketInstance( ) : void`

`getClient( ) : void`

`getContent( ) : void`

`getCreateBuckets( ) : void`

`getDescription( ) : void`

`getFilesets( ) : array`

getter for _filesets

Returns

Type | Description
--- | ---
array |

Details

Access
  public

`getKey( ) : void`

`getLocation( ) : void`

`getObject( ) : void`

`getObjectContents( ) : void`

`getObjectData( ) : string`

Determines what we're going to store in the object

If _content has been set, this will get stored, otherwise, we read from _source

Returns

Type | Description
--- | ---
string |

Details

Access
  public

`getObjectInstance( ) : void`

`getOwningTarget( ) : void`

`getProject( ) : void`

`getRegisterSlot( ) : void`

`getRuntimeConfigurableWrapper( ) : void`

`getSecret( ) : void`

`getSource( ) : void`

`getTaskName( ) : void`

`getTaskType( ) : void`

`init( ) : void`

`isBucketAvailable( ) : void`

`isObjectAvailable( ) : void`

`log( ) : void`

`main( ) : void`
final

`maybeConfigure( ) : void`

`perform( ) : void`

`saveObject( $object, $data ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$object |  |
$data |  |

`setBucket( ) : void`

`setContent( $content ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$content |  |

`setCreateBuckets( $createBuckets ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$createBuckets |  |

`setDescription( ) : void`

`setKey( ) : void`

`setLocation( ) : void`

`setObject( $object ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$object |  |

`setOwningTarget( ) : void`

`setProject( ) : void`

`setRuntimeConfigurableWrapper( ) : void`

`setSecret( ) : void`

`setSource( $source ) : void`

Parameters

Name | Type | Description
--- | --- | ---
$source |  |

`setTaskName( ) : void`

`setTaskType( ) : void`

Documentation was generated by DocBlox 0.17.1.