Handles PDO configuration needed by SQL type tasks.
Use {@link Project#createTask} to register a new Task.
author |
Hans Lellelid hans@xmpl.org (Phing) |
---|---|
author |
Nick Chalko nick@chalko.com (Ant) |
author |
Jeff Martin jeff@custommonkey.org (Ant) |
author |
Michael McCallum gholam@xtra.co.nz (Ant) |
author |
Tim Stephenson tim.stephenson@sybase.com (Ant) |
version |
$Id: fc34371090845b0038a74126bc21e7a1b5d7615c $ |
package |
phing.tasks.system |
init()
Should throw a BuildException if something goes wrong with the build
This is abstract here, but may not be overloaded by subclasses.
throws |
---|
setCaching(mixed $enable)
mixed
setUrl($url)
setPassword($password)
setAutocommit($autocommit)
setVersion($version)
getLoaderMap()
getConnection() : \Connection
The calling method is responsible for closing the connection.
throws |
if the UserId/Password/Url is not set or there is no suitable driver or the driver fails to load. |
---|
\Connection
the newly created connection.
isCaching($value)
isAutocommit() : \Returns
\Returns
a boolean
getUrl() : \Returns
\Returns
a String
getUserId() : \Returns
\Returns
a String
setUserid($userId)
getPassword() : \Returns
\Returns
a String
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
main()
Should throw a BuildException if someting goes wrong with the build
This is abstract here. Must be overloaded by real tasks.
getLocation() : \Location
setLocation(\Location $location)
getRuntimeConfigurableWrapper() : \RuntimeConfigurable
setRuntimeConfigurableWrapper(\RuntimeConfigurable $wrapper)
maybeConfigure()
perform()
setProject(\Project $project)
getProject() : \Project
caching :
autocommit :
url :
userId :
password :
rdbms :
description : string
var |
---|
string
taskType : string
var |
---|
string
taskName : string
var |
---|
string
project : \Project