classes/phing/parser/TargetHandler.php
The target handler class.
This class handles the occurance of a
- author
- Andreas Aderhold
- copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing.parser
- version
- $Revision: 914 $
\TargetHandler
The target 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: 914 $
Properties

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

__construct(
object $parser, object $parentHandler, object $configurator
)
:
Constructs a new TargetHandler
| Name | Type | Description |
|---|---|---|
| $parser | object | the ExpatParser object |
| $parentHandler | object | the parent handler that invoked this handler |
| $configurator | object | the ProjectConfigurator object |

init(
string $tag, array $attrs
)
:
Executes initialization actions required to setup the data structures
related to the tag.
<
p> This includes:
- creation of the target object
- calling the setters for attributes
- adding the target to the project
- adding a reference to the target (if id attribute is given)
| Name | Type | Description |
|---|---|---|
| $tag | string | the tag that comes in |
| $attrs | array | attributes the tag carries |
- throws
- if attributes are incomplete or invalid