parser/ProjectHandler.php
Handler class for the <project> XML element This class handles all elements under the <project> element.
- Access
- public
- Author
- Andreas Aderhold
- Copyright
- (c) 2001,2002 THYRELL. All rights reserved
- Package
- phing.parser
- Version
- $Id: 393b1f3d8758281af2fd0153ffc6151333457527 $
\ProjectHandler
Handler class for the <project> XML element This class handles all elements under the <project> element.
- Parent(s)
- \AbstractHandler
- Access
- public
- Author
- Andreas Aderhold
- Copyright
- (c) 2001,2002 THYRELL. All rights reserved
- Version
- $Id: 393b1f3d8758281af2fd0153ffc6151333457527 $
Properties

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

$parentHandler= 'null'
nullDetails- Type
- n/a
- Inherited_from
- \AbstractHandler::$$parentHandler

$parser= 'null'
nullDetails- Type
- n/a
- Inherited_from
- \AbstractHandler::$$parser
Methods

__construct(
object $parser, object $parentHandler, object $configurator
)
:
voidConstructs a new ProjectHandler
The constructor must be called by all derived classes.
| Name | Type | Description |
|---|---|---|
| $parser | object | the ExpatParser object |
| $parentHandler | object | the parent handler that invoked this handler |
| $configurator | object | the ProjectConfigurator object |
- Access
- public

characters(
string $data
)
:
void
| Name | Type | Description |
|---|---|---|
| $data | string | the name of the XML element |
- Access
- public
- Exception
- ExpatParserException if there is no CDATA but method was called

endElement(
string $name
)
:
void
Can be overloaded by the child class. But should not. It hands over control to the parentHandler of this.
| Name | Type | Description |
|---|---|---|
| $name | string | the name of the XML element |

init(
string $tag, array $attrs
)
:
voidExecutes initialization actions required to setup the project. Usually this method handles the attributes of a tag.
| Name | Type | Description |
|---|---|---|
| $tag | string | the tag that comes in |
| $attrs | array | attributes the tag carries |
| Exception | Description |
|---|---|
| \ExpatParseException | if attributes are incomplete or invalid |
- Access
- public

startElement(
string $name, array $attrs
)
:
voidHandles start elements within the
Must be overloaded by the child class. Throws an ExpatParseException if there is no handler registered for an element.
| Name | Type | Description |
|---|---|---|
| $name | string | the tag that comes in |
| $attrs | array | attributes the tag carries |
| Exception | Description |
|---|---|
| \ExpatParseException | if a unxepected element occurs |
- Access
- public