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 |
version | $Id$ |
package | phing.parser |
__construct()
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.
resource
php's internal parser handle.
string
the CDATA
\Exception |
- 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.
object
the php's internal parser handle
string
the closing tag name
\Exception |
- Exceptions may be thrown by the Handler |
---|
parse()
This method needs to be implemented by the child classt that utilizes the concrete parser
parserSetOption($opt, $val)
Must be implemented by the parser class if it should be used.
setHandler(\AbstractHandler $obj)
Usually this is an object using extending "AbstractHandler".
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.
object
the php's internal parser handle
string
the open tag name
array
the tag's attributes if any
\Exception |
- Exceptions may be thrown by the Handler |
---|
$handler