phing-parser
[ class tree: phing-parser ] [ index: phing-parser ] [ all elements ]

Class: TargetHandler

Source Location: /parser/TargetHandler.php

Class Overview

AbstractHandler
   |
   --TargetHandler

The target handler class.


Author(s):

Version:

  • $Revision: 526 $

Copyright:

  • 2001,2002 THYRELL. All rights reserved

Methods


Inherited Variables

Inherited Methods

Class: AbstractHandler

AbstractHandler::__construct()
Constructs a SAX handler parser.
AbstractHandler::characters()
Invoked by occurance of #PCDATA.
AbstractHandler::endElement()
Gets invoked when a XML element ends.
AbstractHandler::finished()
Gets invoked when element closes method.
AbstractHandler::startElement()
Gets invoked when a XML open tag occurs

Class Details

[line 35]
The target handler class.

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




Tags:

author:  Andreas Aderhold <andi@binarycloud.com>
version:  $Revision: 526 $
copyright:  2001,2002 THYRELL. All rights reserved


[ Top ]


Class Methods


constructor __construct [line 57]

TargetHandler __construct( AbstractSAXParser $parser, AbstractHandler $parentHandler, ProjectConfigurator $configurator)

Constructs a new TargetHandler



Overrides AbstractHandler::__construct() (Constructs a SAX handler parser.)

Parameters:

object the   $parser   ExpatParser object
object the   $parentHandler   parent handler that invoked this handler
object the   $configurator   ProjectConfigurator object

[ Top ]

method init [line 78]

void init( string $tag, array $attrs)

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

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)




Tags:

throws:  ExpatParseException if attributes are incomplete or invalid


Parameters:

string   $tag   the tag that comes in
array   $attrs   attributes the tag carries

[ Top ]

method startElement [line 167]

void startElement( string $name, array $attrs)

Checks for nested tags within the current one. Creates and calls handlers respectively.



Overrides AbstractHandler::startElement() (Gets invoked when a XML open tag occurs)

Parameters:

string   $name   the tag that comes in
array   $attrs   attributes the tag carries

[ Top ]


Documentation generated on Mon, 19 Oct 2009 10:52:11 +0200 by phpDocumentor 1.4.3