classes/phing/parser/AbstractHandler.php

This is an abstract class all SAX handler classes must extend

author
Andreas Aderhold
copyright
© 2001,2002 THYRELL. All rights reserved
package
phing.parser
version
$Revision: 526 $

\AbstractHandler

This is an abstract class all SAX handler classes must extend

author
Andreas Aderhold
copyright
© 2001,2002 THYRELL. All rights reserved
package
phing.parser
version
$Revision: 526 $

Properties

Propertypublic  $parentHandler= 'null'
Default valuenullDetails
Type
Propertypublic  $parser= 'null'
Default valuenullDetails
Type

Methods

methodprotected  __construct( object $parser, object $parentHandler ) :
Constructs a SAX handler parser.

The constructor must be called by all derived classes.

Parameters
Name Type Description
$parser object the parser object
$parentHandler object the parent handler of this handler
methodpublic  characters( string $data ) :
Invoked by occurance of #PCDATA.
Parameters
Name Type Description
$data string the name of the XML element
Details
access
public
exception
ExpatParserException if there is no CDATA but method was called
methodpublic  endElement( string $name ) :
Gets invoked when a XML element ends.

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

Parameters
Name Type Description
$name string the name of the XML element
methodprotected  finished( ) :
Gets invoked when element closes method.
methodpublic  startElement( string $name, array $attribs ) :
Gets invoked when a XML open tag occurs

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

Parameters
Name Type Description
$name string the name of the XML element
$attribs array the attributes of the XML element
Documentation was generated by DocBlox 0.13.1.