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. |
|---|
\Connectionthe newly created connection.
isCaching($value)
isAutocommit() : \Returns
\Returnsa boolean
getUrl() : \Returns
\Returnsa String
getUserId() : \Returns
\Returnsa String
setUserid($userId)
getPassword() : \Returns
\Returnsa String
setOwningTarget(\Target $target)
getOwningTarget() : \Target
getTaskName() : string
stringName of this task
setTaskName(string $name) : string
string
stringA string representing the name of this task for log
getTaskType() : string
stringThe type of this task (XML Tag)
setTaskType($name)
getRegisterSlot(string $slotName)
string
log(string $msg, integer $level = \Project::MSG_INFO)
stringThe message to be logged.
integerThe message's priority at this message should have
setDescription(string $desc)
stringThe text describing the task
getDescription() : string
stringThe 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