Encapsulates a build specific event.
<
p>We have three sources of events all handled by this class:
<
p> Events are all fired from the project class by creating an event object using this class and passing it to the listeners.
| author | Andreas Aderhold |
|---|---|
| author | Hans Lellelid |
| version | $Id$ |
| package | phing |
__construct(object $source)
objectproject the project that emitted the event.
getException() : \Exception
This field will only be set for "taskFinished", "targetFinished", and "buildFinished" events.
| see | \BuildListener::taskFinished() |
|---|---|
| see | \BuildListener::targetFinished() |
| see | \BuildListener::buildFinished() |
getMessage() : string
This field will only be set for "messageLogged" events.
stringThe log messagegetPriority() : integer
This field will only be set for "messageLogged" events.
integerThe message prioritygetProject() : \Project
The reference to the project instance is set by the constructor if this event was fired from the project class.
\ProjectThe project instance that fired this eventgetSource()
| inherited_from | \EventObject::getSource() |
|---|
getTarget() : \Target
The reference to the target instance is set by the constructor if this event was fired from the target class.
\TargetThe target that fired this eventgetTask() : \Task
The reference to the task instance is set by the constructor if this event was fired within a task.
\TaskThe task that fired this eventsetMessage(string $message, integer $priority)
stringThe string message of the event
integerThe priority this message should have
toString()
| inherited_from | \EventObject::toString() |
|---|
$exception : object
$priority : string
| see | \$message |
|---|
$project : \Project
$source
| inherited_from | \EventObject::$$source |
|---|
$target : \Target
$task : \Task