classes/phing/parser/AbstractSAXParser.php
The abstract SAX parser class.
This class represents a SAX parser. It is a abstract calss that must be implemented by the real parser that must extend this class
- author
- Andreas Aderhold
- author
- Hans Lellelid
- copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing.parser
- version
- $Revision: 912 $
\AbstractSAXParser
The abstract SAX parser class.
This class represents a SAX parser. It is a abstract calss that must be implemented by the real parser that must extend this class
- author
- Andreas Aderhold
- author
- Hans Lellelid
- copyright
- 2001,2002 THYRELL. All rights reserved
- package
- phing.parser
- version
- $Revision: 912 $
Properties
Methods

characters(
resource $parser, string $data
)
:
This method is called by PHP's internal parser functions and registered in the actual parser implementation.
It gives control to the current active handler object by calling the
characters() method. That processes the given CDATA.
| Name | Type | Description |
|---|---|---|
| $parser | resource | php's internal parser handle. |
| $data | string | the CDATA |
- throws
- - Exceptions may be thrown by the Handler

endElement(
object $parser, string $name
)
:
This method is called by PHP's internal parser funcitons and registered in the actual parser implementation.
It gives control to the current active handler object by calling the
endElement() method.
| Name | Type | Description |
|---|---|---|
| $parser | object | the php's internal parser handle |
| $name | string | the closing tag name |
- throws
- - Exceptions may be thrown by the Handler

parse(
)
:

parserSetOption(
$opt, $val
)
:
| Name | Type | Description |
|---|---|---|
| $opt | ||
| $val |

setHandler(
\AbstractHandler $obj
)
:
| Name | Type | Description |
|---|---|---|
| $obj | \AbstractHandler | The handler object. |

startElement(
object $parser, string $name, array $attribs
)
:
This method is called by PHP's internal parser functions and registered
in the actual parser implementation.
It gives control to the current active handler object by calling the
startElement() method.
| Name | Type | Description |
|---|---|---|
| $parser | object | the php's internal parser handle |
| $name | string | the open tag name |
| $attribs | array | the tag's attributes if any |
- throws
- - Exceptions may be thrown by the Handler