Open Monograph Press  3.3.0
XMLParserHandler Class Reference
Inheritance diagram for XMLParserHandler:
XMLParserDOMHandler ONIXParserDOMHandler

Public Member Functions

 characterData ($parser, $data)
 
 destroy ()
 
 endElement ($parser, $tag)
 
 getResult ()
 
 startElement ($parser, $tag, $attributes)
 

Detailed Description

Interface for handler class used by XMLParser. All XML parser handler classes must implement these methods.

Definition at line 238 of file XMLParser.inc.php.

Member Function Documentation

◆ characterData()

XMLParserHandler::characterData (   $parser,
  $data 
)

Callback function to act as the character data handler.

Parameters
$parserXMLParser
$datastring

Reimplemented in ONIXParserDOMHandler, and XMLParserDOMHandler.

Definition at line 262 of file XMLParser.inc.php.

◆ destroy()

XMLParserHandler::destroy ( )

Perform clean up for this object

Deprecated:

Reimplemented in XMLParserDOMHandler.

Definition at line 278 of file XMLParser.inc.php.

◆ endElement()

XMLParserHandler::endElement (   $parser,
  $tag 
)

Callback function to act as the end element handler.

Parameters
$parserXMLParser
$tagstring

Reimplemented in ONIXParserDOMHandler, and XMLParserDOMHandler.

Definition at line 254 of file XMLParser.inc.php.

◆ getResult()

XMLParserHandler::getResult ( )

Returns a resulting data structure representing the parsed content. The format of this object is specific to the handler.

Returns
mixed

Reimplemented in ONIXParserDOMHandler, and XMLParserDOMHandler.

Definition at line 270 of file XMLParser.inc.php.

◆ startElement()

XMLParserHandler::startElement (   $parser,
  $tag,
  $attributes 
)

Callback function to act as the start element handler.

Parameters
$parserXMLParser
$tagstring
$attributesarray

Reimplemented in ONIXParserDOMHandler, and XMLParserDOMHandler.

Definition at line 246 of file XMLParser.inc.php.


The documentation for this class was generated from the following file: