tasks/ext/creole/CreoleTask.php
\CreoleTask
Handles Creole configuration needed by SQL type tasks.
- Parent(s)
- \Task < \ProjectComponent
- Children
- \CreoleSQLExecTask
- Author
- Hans Lellelid
(Phing) - Author
- Nick Chalko
(Ant) - Author
- Jeff Martin
(Ant) - Author
- Michael McCallum
(Ant) - Author
- Tim Stephenson
(Ant) - Version
- $Revision: 526 $
Properties

$loaderMap= 'array()'
Used for caching loaders / driver. This is to avoid getting an OutOfMemoryError when calling this task multiple times in a row.
NOT IMPLEMENTED YET
array()Details- Type
- n/a
Methods

getConnection(
)
:
\ConnectionCreates a new Connection as using the driver, url, userid and password specified.
The calling method is responsible for closing the connection.
| Type | Description |
|---|---|
| \Connection | the newly created connection. |
| Exception | Description |
|---|---|
| \BuildException | if the UserId/Password/Url is not set or there is no suitable driver or the driver fails to load. |

init(
)
:
voidInitialize CreoleTask.
This method includes any necessary Creole libraries and triggers appropriate error if they cannot be found. This is not done in header because we may want this class to be loaded w/o triggering an error.

setAutocommit(
\autocommit $autocommit
)
:
voidAuto commit flag for database connection; optional, default false.
| Name | Type | Description |
|---|---|---|
| $autocommit | \autocommit | The autocommit to set |

setCaching(
$enable
)
:
voidCaching loaders / driver. This is to avoid getting an OutOfMemoryError when calling this task multiple times in a row; default: true
| Name | Type | Description |
|---|---|---|
| $enable |

setDriver(
string $driver
)
:
voidSet the Creole driver to be used.
| Name | Type | Description |
|---|---|---|
| $driver | string | driver class name |

setPassword(
\password $password
)
:
voidSets the password; required.
| Name | Type | Description |
|---|---|---|
| $password | \password | The password to set |

setUrl(
\url $url
)
:
voidSets the database connection URL; required.
| Name | Type | Description |
|---|---|---|
| $url | \url | The url to set |

setUserid(
\userId $userId
)
:
voidSet the user name for the connection; required.
| Name | Type | Description |
|---|---|---|
| $userId | \userId | The userId to set |