classes/phing/parser/TaskHandler.php
The task handler class.
This class handles the occurance of a
- author
- Andreas Aderhold
- copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing.parser
- version
- $Revision: 912 $
\TaskHandler
The task handler class.
This class handles the occurance of a
- Extends from
- \AbstractHandler
- author
- Andreas Aderhold
- copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing.parser
- version
- $Revision: 912 $
Properties

\ProjectConfigurator
$configurator= ''
The phing project configurator object
- Type
- \ProjectConfigurator

object
$container= ''
Reference to the target object that represents the currently parsed target. This must not necessarily be a target, hence extra variable.
the target instance- Type
- object

\RuntimeConfigurable
$parentWrapper= ''
Wrapper for the parent element, if any. The wrapper for this element will be added to this wrapper as a child.
- Type
- \RuntimeConfigurable

object
$target= ''
Reference to the target object that contains the currently parsed task
the target instance- Type
- object

\Task
$task= ''
Reference to the task object that represents the currently parsed target.
- Type
- \Task
Methods

__construct(
\AbstractSAXParser $parser, object $parentHandler, \ProjectConfigurator $configurator, \TaskContainer $container
=
null, \RuntimeConfigurable $parentWrapper
=
null, \Target $target
=
null
)
:
| Name | Type | Description |
|---|---|---|
| $parser | \AbstractSAXParser | The ExpatParser object |
| $parentHandler | object | The parent handler that invoked this handler |
| $configurator | \ProjectConfigurator | |
| $container | \TaskContainer | The container object this task is contained in (null for top-level tasks). |
| $parentWrapper | \RuntimeConfigurable | Wrapper for the parent element, if any. |
| $target | \Target | The target object this task is contained in (null for top-level tasks). |

characters(
string $data
)
:
| Name | Type | Description |
|---|---|---|
| $data | string | The CDATA that comes in |

init(
string $tag, array $attrs
)
:
<
p> This includes:
- creation of the task object
- calling the setters for attributes
- adding the task to the container object
- adding a reference to the task (if id attribute is given)
- executing the task if the container is the <project> element
| Name | Type | Description |
|---|---|---|
| $tag | string | The tag that comes in |
| $attrs | array | Attributes the tag carries |
- throws
- if attributes are incomplete or invalid