Stores an object on S3
Provides common methods and properties to all of the S3 tasks
version |
$Id: 783ce298a46932729a0027f76eaea77307cc60f4 $ |
---|---|
package |
phing.tasks.ext |
author |
Andrei Serdeliuc andrei@serdeliuc.ro |
extends |
Service_Amazon_S3 |
__get(mixed $var) : void
If the property hasn't been previously set (through the task call normally), it will try to load it from the project
This way, we can define global properties for the "Amazon" service, like key and secret
access |
public |
---|
mixed
__isset( $var)
__set( $var, $val)
createBucket() : void
access |
public |
---|---|
execute() : void
access |
public |
---|---|
abstract | |
getAcl()
getBucket()
getBucketInstance() : \Services_Amazon_S3_Resource_Bucket
access |
public |
---|---|
\Services_Amazon_S3_Resource_Bucket
getClient() : \Services_Amazon_S3
access |
public |
---|---|
\Services_Amazon_S3
getContent()
getContentType()
getCreateBuckets()
getDescription() : string
string
The text description of the task
getFilesets() : array
access |
public |
---|---|
array
getGzip() : \booleand
\booleand
Indicate if content is gzipped.
getHttpHeaders() : array
array
HttpHeader to set in S3 Object.
getKey()
getLocation() : \Location
getMaxage() : integer
integer
Number of seconds in maxage or null.
getObject()
getObjectContents(string $object) : mixed
access |
public |
---|
string
mixed
getObjectData() : string
If _content has been set, this will get stored, otherwise, we read from _source
access |
public |
---|---|
string
getObjectInstance(mixed $object) : \Services_Amazon_S3_Resource_Object
access |
public |
---|
mixed
\Services_Amazon_S3_Resource_Object
getOwningTarget() : \Target
getProject() : \Project
getRegisterSlot(string $slotName)
string
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
getSecret()
getSource()
getTaskName() : string
string
Name of this task
getTaskType() : string
string
The type of this task (XML Tag)
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
throws | |
---|---|
isBucketAvailable() : boolean
access |
public |
---|---|
boolean
isObjectAvailable(mixed $object) : boolean
access |
public |
---|
mixed
boolean
log(string $msg, integer $level = \Project::MSG_INFO)
string
The message to be logged.
integer
The message's priority at this message should have
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
maybeConfigure()
perform()
saveObject( $object, $data)
setAcl( $permission)
setBucket( $bucket)
setContent( $content)
setContentType( $contentType)
setCreateBuckets( $createBuckets)
setDescription(string $desc)
string
The text describing the task
setFileNameOnly( $fileNameOnly)
setGzip(boolean $gzipped)
boolean
setKey( $key)
setLocation(\Location $location)
setMaxage(integer $seconds)
integer
setObject( $object)
setOwningTarget(\Target $target)
setProject(\Project $project)
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
setSecret( $secret)
setSource( $source)
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
setTaskType( $name)
_source : string
(default value: null)
var | |
---|---|
access |
protected |
string
_content : mixed
The user can specify either a file to upload or just a bit of content
(default value: null)
var | |
---|---|
access |
protected |
mixed
_filesets : array
(default value: array())
var | |
---|---|
access |
protected |
array
_createBuckets : boolean
(default value: false)
var | |
---|---|
access |
protected |
boolean
_acl : string
(default value: 'private')
var | |
---|---|
access |
protected |
string
_contentType : string
(default value: 'binary/octet-stream')
var | |
---|---|
access |
protected |
string
_maxage : integer
var |
---|
integer
_gzipped : boolean
var |
---|
boolean
_extensionContentTypeMapper : array
var | |
---|---|
access |
protected |
array
_fileNameOnly : boolean
(default value: false)
var | |
---|---|
access |
protected |
boolean
_client : \Services_Amazon_S3
(default value: null)
var | |
---|---|
see | |
access |
protected |
\Services_Amazon_S3
description : string
var |
---|
string
taskType : string
var |
---|
string
taskName : string
var |
---|
string
project : \Project