BuildEvent.php
Encapsulates a build specific event.
<
p>We have three sources of events all handled by this class:
- Project level events
- Target level events
- Task level events
<
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
- Package
- phing
- Version
- $Id$
\BuildEvent
Encapsulates a build specific event.
<
p>We have three sources of events all handled by this class:
- Project level events
- Target level events
- Task level events
<
p> Events are all fired from the project class by creating an event object using this class and passing it to the listeners.
- Parent(s)
- \EventObject
- Author
- Andreas Aderhold
- Author
- Hans Lellelid
- Version
- $Id$
Properties

object
$exception= 'null'
The execption that caused the event, if any
nullDetails- Type
- object

string
$message= 'null'
The message of this event, if the event is a message
nullDetails- Type
- string

string
$priority= 'Project::MSG_VERBOSE'
The priority of the message
Project::MSG_VERBOSEDetails- Type
- string
- See
- \$message
Methods

__construct(
object $source
)
:
voidConstruct a BuildEvent for a project, task or target source event
| Name | Type | Description |
|---|---|---|
| $source | object | project the project that emitted the event. |

getException(
)
:
\ExceptionReturns the exception that was thrown, if any.
This field will only be set for "taskFinished", "targetFinished", and "buildFinished" events.
| Type | Description |
|---|---|
| \Exception |

getMessage(
)
:
stringReturns the logging message. This field will only be set for "messageLogged" events.
| Type | Description |
|---|---|
| string | The log message |

getPriority(
)
:
integerReturns the priority of the logging message. This field will only be set for "messageLogged" events.
| Type | Description |
|---|---|
| integer | The message priority |

getProject(
)
:
\ProjectReturns the project instance that fired this event.
The reference to the project instance is set by the constructor if this event was fired from the project class.
| Type | Description |
|---|---|
| \Project | The project instance that fired this event |

getSource(
)
:
voidThe object on which the Event initially occurred.
Inherited from: \EventObject::getSource()
getTarget(
)
:
\TargetReturns the target instance that fired this event.
The reference to the target instance is set by the constructor if this event was fired from the target class.
| Type | Description |
|---|---|
| \Target | The target that fired this event |

getTask(
)
:
\TaskReturns the target instance that fired this event.
The reference to the task instance is set by the constructor if this event was fired within a task.
| Type | Description |
|---|---|
| \Task | The task that fired this event |

setException(
\Exception $exception
)
:
voidSet the exception that was the cause of this event.
| Name | Type | Description |
|---|---|---|
| $exception | \Exception | The exception that caused the event |

setMessage(
string $message, integer $priority
)
:
voidSets the message with details and the message priority for this event.
| Name | Type | Description |
|---|---|---|
| $message | string | The string message of the event |
| $priority | integer | The priority this message should have |

toString(
)
:
voidReturns a String representation of this EventObject.
Inherited from: \EventObject::toString()