phing-parser

# Class: RootHandler Source Location: /parser/RootHandler.php
### Class Overview
    AbstractHandler
       |
       --RootHandler
Root filter class for a phing buildfile. #### Author(s): Andreas Aderhold <andi@binarycloud.com> #### Version: $Revision: 526 $ #### Copyright: © 2001,2002 THYRELL. All rights reserved | ### Methods __construct startElement
### Inherited Variables #### Class: AbstractHandler AbstractHandler::$parentHandler AbstractHandler::$parser | ### 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 37] Root filter class for a phing buildfile. The root filter is called by the parser first. This is where the phing specific parsing starts. RootHandler decides what to do next. #### Tags:
author: | Andreas Aderhold <andi@binarycloud.com>
version: | $Revision: 526 $
copyright: | © 2001,2002 THYRELL. All rights reserved
[ Top ] ### Class Methods ### constructor __construct [line 56]
`RootHandler __construct( AbstractSAXParser $parser, ProjectConfigurator $configurator)`
Constructs a new RootHandler The root filter is required so the parser knows what to do. It's called by the ExpatParser that is instatiated in ProjectConfigurator. It recieves the expat parse object ref and a reference to the configurator Overrides AbstractHandler::__construct() (Constructs a SAX handler parser.) #### Parameters:
AbstractSAXParser | $parser | The ExpatParser object.
ProjectConfigurator | $configurator | The ProjectConfigurator object.
[ Top ] ### method startElement [line 74]
`void startElement( string $tag, array $attrs)`
Kick off a custom action for a start element tag. The root element of our buildfile is the &lt;project&gt; element. The root filter handles this element if it occurs, creates ProjectHandler to handle any nested tags & attributes of the &lt;project&gt; tag, and calls init. #### Tags:
throws: | ExpatParseException if the first element within our build file is not the &gt;project&lt; element
Overrides AbstractHandler::startElement() (Gets invoked when a XML open tag occurs) #### Parameters:
string | $tag | The xml tagname
array | $attrs | The attributes of the tag
[ Top ] Documentation generated on Mon, 19 Oct 2009 10:51:57 +0200 by phpDocumentor 1.4.3