classes/phing/tasks/ext/Service/Amazon/S3/S3PutTask.php

\S3PutTask

Stores an object on S3

Provides common methods and properties to all of the S3 tasks

Extends from
\Service_Amazon_S3
author
Andrei Serdeliuc
copyright
2001,2002 THYRELL. All rights reserved
extends
Service_Amazon_S3
package
phing.tasks.ext
version
$Id: S3PutTask.php 1184 2011-06-22 13:36:56Z mrook $

Properties

Propertyprotectedmixed  $_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 valuenullDetails
Type
mixed
access
protected
Propertyprotectedbool  $_createBuckets= 'false'

Whether to try to create buckets or not

(default value: false)

Default valuefalseDetails
Type
bool
access
protected
Propertyprotectedarray  $_filesets= 'array'

Collection of filesets Used for uploading multiple files

(default value: array())

Default valuearrayDetails
Type
array
access
protected
Propertyprotectedstring  $_source= 'null'

File we're trying to upload

(default value: null)

Default valuenullDetails
Type
string
access
protected

Methods

methodpublic  createFileset( ) : \FileSet
creator for _filesets
Returns
Type Description
\FileSet
Details
access
public
methodpublic  execute( ) : void
Store the object on S3
Details
access
public
methodpublic  getContent( ) :
methodpublic  getCreateBuckets( ) :
methodpublic  getFilesets( ) : array
getter for _filesets
Returns
Type Description
array
Details
access
public
methodpublic  getObject( ) :
methodpublic  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
methodpublic  getSource( ) :
methodprotected  saveObject(  $object,  $data ) :
Parameters
Name Type Description
$object
$data
methodpublic  setContent(  $content ) :
Parameters
Name Type Description
$content
methodpublic  setCreateBuckets(  $createBuckets ) :
Parameters
Name Type Description
$createBuckets
methodpublic  setObject(  $object ) :
Parameters
Name Type Description
$object
methodpublic  setSource(  $source ) :
Parameters
Name Type Description
$source
Documentation was generated by DocBlox 0.13.1.