phing-parser

# Class: NestedElementHandler Source Location: /parser/NestedElementHandler.php
### Class Overview
    AbstractHandler
       |
       --NestedElementHandler
The nested element handler class. #### Author(s): Andreas Aderhold <andi@binarycloud.com> #### Version: $Revision: 552 $ $Date: 2009-08-29 14:18:13 +0200 (Sat, 29 Aug 2009) $ #### Copyright: © 2001,2002 THYRELL. All rights reserved | ### Methods __construct characters init 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 39] The nested element handler class. This class handles the occurance of runtime registered tags like datatypes (fileset, patternset, etc) and it's possible nested tags. It introspects the implementation of the class and sets up the data structures. #### Tags:
author: | Andreas Aderhold <andi@binarycloud.com>
version: | $Revision: 552 $ $Date: 2009-08-29 14:18:13 +0200 (Sat, 29 Aug 2009) $
copyright: | © 2001,2002 THYRELL. All rights reserved
access: | public
[ Top ] ### Class Methods ### constructor __construct [line 84]
`NestedElementHandler __construct( object the $parser, object the $parentHandler, object the $configurator, object the $parent, object the $parentWrapper, object the $target)`
Constructs a new NestedElement handler and sets up everything. #### Tags:
access: | public
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
object the | $parent | parent object this element is contained in
object the | $parentWrapper | parent wrapper object
object the | $target | target object this task is contained in
[ Top ] ### method characters [line 150]
`void characters( string $data)`
Handles character data. #### Tags:
throws: | ExpatParseException if the CDATA could not be set-up properly
access: | public
Overrides AbstractHandler::characters() (Invoked by occurance of #PCDATA.) #### Parameters:
string | $data | the CDATA that comes in
[ Top ] ### method init [line 113]
`void init( string $propType, array $attrs)`
Executes initialization actions required to setup the data structures related to the tag. This includes: creation of the nested element calling the setters for attributes adding the element to the container object adding a reference to the element (if id attribute is given) #### Tags:
throws: | ExpatParseException if the setup process fails
access: | public
#### Parameters:
string | $propType | the tag that comes in
array | $attrs | attributes the tag carries
[ Top ] ### method startElement [line 174]
`void startElement( string $name, array $attrs)`
Checks for nested tags within the current one. Creates and calls handlers respectively. #### Tags:
access: | public
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:51:18 +0200 by phpDocumentor 1.4.3