TargetHandler

Extends \AbstractHandler

The target handler class.

This class handles the occurance of a tag and it's possible nested tags (datatypes and tasks).

author

Andreas Aderhold andi@binarycloud.com

copyright

2001,2002 THYRELL. All rights reserved

version

$Id: f73d7c67a353cf16f048af3ba013d84ec726a926 $

package

phing.parser

Methods

Constructs a SAX handler parser.

__construct($parser, $parentHandler) 
inherited

The constructor must be called by all derived classes.

Arguments

$parser

$parentHandler

Executes initialization actions required to setup the data structures related to the tag.

init($tag, $attrs) 

<

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)
throws

if attributes are incomplete or invalid

Arguments

$tag

$attrs

Gets invoked when a XML open tag occurs

startElement($name, $attribs) 
inherited

Must be overloaded by the child class. Throws an ExpatParseException if there is no handler registered for an element.

Arguments

$name

$attribs

Gets invoked when element closes method.

finished() 
inherited

Gets invoked when a XML element ends.

endElement($name) 
inherited

Can be overloaded by the child class. But should not. It hands over control to the parentHandler of this.

Arguments

$name

Invoked by occurance of #PCDATA.

characters($data) 
inherited
exception

ExpatParserException if there is no CDATA but method was called

access

public

Arguments

$data

Properties

Reference to the target object that represents the currently parsed target.

target : object
var

the target instance

Type(s)

object

The phing project configurator object

configurator : \ProjectConfigurator
var

Type(s)

\ProjectConfigurator

parentHandler

parentHandler : 
inherited

parser

parser : 
inherited