Stores an object on S3
Provides common methods and properties to all of the S3 tasks
version |
$Id: 334f64383dde9b06cc259690e391c2b85cc90477 $ |
---|---|
package |
phing.tasks.ext |
author |
Andrei Serdeliuc andrei@serdeliuc.ro |
extends |
Service_Amazon_S3 |
setSource($source)
getSource()
setContent($content)
getContent()
setObject($object)
getObject()
setAcl($permission)
getAcl()
setContentType($contentType)
getContentType()
setCreateBuckets($createBuckets)
getCreateBuckets()
setFileNameOnly($fileNameOnly)
getFilesets() : array
access |
public |
---|
array
getObjectData() : string
If _content has been set, this will get stored, otherwise, we read from _source
access |
public |
---|
string
execute() : void
access |
public |
---|---|
abstract |
saveObject($object, $data)
getClient() : \Services_Amazon_S3
access |
public |
---|
\Services_Amazon_S3
setBucket($bucket)
getBucket()
getObjectInstance(mixed $object) : \Services_Amazon_S3_Resource_Object
access |
public |
---|
mixed
\Services_Amazon_S3_Resource_Object
isObjectAvailable(mixed $object) : bool
access |
public |
---|
mixed
bool
getBucketInstance() : \Services_Amazon_S3_Resource_Bucket
access |
public |
---|
\Services_Amazon_S3_Resource_Bucket
isBucketAvailable() : bool
access |
public |
---|
bool
getObjectContents(string $object) : mixed
access |
public |
---|
string
mixed
createBucket() : void
access |
public |
---|
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
__set($var, $val)
__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)
setKey($key)
getKey()
setSecret($secret)
getSecret()
setOwningTarget(\Target $target)
getOwningTarget() : \Target
getTaskName() : string
string
Name of this task
setTaskName(string $name) : string
string
string
A string representing the name of this task for log
getTaskType() : string
string
The type of this task (XML Tag)
setTaskType($name)
getRegisterSlot(string $slotName)
string
log(string $msg, integer $level = \Project::MSG_INFO)
string
The message to be logged.
integer
The message's priority at this message should have
setDescription(string $desc)
string
The text describing the task
getDescription() : string
string
The text description of the task
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
throws |
---|
getLocation() : \Location
setLocation(\Location $location)
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
maybeConfigure()
perform()
setProject(\Project $project)
getProject() : \Project
_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 : bool
(default value: false)
var | |
---|---|
access |
protected |
bool
_acl : string
(default value: 'private')
var | |
---|---|
access |
protected |
string
_contentType : string
(default value: 'binary/octet-stream')
var | |
---|---|
access |
protected |
string
_extensionContentTypeMapper : array
var | |
---|---|
access |
protected |
array
_fileNameOnly : bool
(default value: false)
var | |
---|---|
access |
protected |
bool
_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