Abstract Service_Amazon_S3 class.
Provides common methods and properties to all of the S3 tasks
version |
$ID$ |
---|---|
package |
phing.tasks.ext |
author |
Andrei Serdeliuc [email protected] |
__construct()
__get(mixed $var) : mixed
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
mixed
mixed
__isset(string $var) : boolean
string
boolean
__set(string $var, mixed $val)
string
mixed
createBucket() : boolean
Throws |
|
---|
boolean
execute() : void
getBucket() : string
Throws |
|
---|
string
getClient() : \Aws\S3\S3Client
Throws |
|
---|
\Aws\S3\S3Client
getClientInstance() : \Aws\S3\S3Client
\Aws\S3\S3Client
getDescription() : string
string
the description of the current action, or null
if
no description is available.
getKey() : string
Throws |
|
---|
string
getLocation() : \Location
getObjectInstance(mixed $object) : \Aws\Result
Throws |
|
---|
mixed
\Aws\Result
getOwningTarget() : \Target
getProject() : \Project
getRegisterSlot(string $slotName) : \RegisterSlot
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
getSecret() : string
Throws |
|
---|
string
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
Throws |
|
---|
boolean
isObjectAvailable(mixed $object) : boolean
mixed
boolean
log(string $msg, integer $level = \Project::MSG_INFO) : void
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() : void
Throws |
|
---|
setBucket(string $bucket)
Throws |
|
---|
string
setDescription(string $desc)
string
Description of the current action.
May be null
, indicating that no description is
available.
setKey(string $key)
Throws |
|
---|
string
setLocation(\Location $location)
setOwningTarget(\Target $target)
setProject(\Project $project) : void
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
setSecret(string $secret)
Throws |
|
---|
string
setTaskName(string $name)
string
setTaskType(string $name)
string
The type of this task (XML Tag)
_client : \Aws\S3\S3Client
(default value: null)
var |
---|
\Aws\S3\S3Client
taskType : string
var |
---|
string
taskName : string
var |
---|
string
project : \Project
description : string
var |
---|
string