Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
RTXMLParser Class Reference

Public Member Functions

parse ($file)
 
parseAll ($dir)
 
parseContext (&$context)
 
parseSearch (&$search)
 
parseVersion (&$version)
 

Public Attributes

 $parser
 

Detailed Description

Class to parse Reading Tools data from an XML format.

See Also
RT

Definition at line 21 of file RTXMLParser.inc.php.

Member Function Documentation

& RTXMLParser::parse (   $file)

Parse an RT version XML file.

Parameters
$filestring path to the XML file
Returns
RTVersion

Definition at line 35 of file RTXMLParser.inc.php.

References parseVersion().

Referenced by parseAll().

& RTXMLParser::parseAll (   $dir)

Parse all RT version XML files in a directory.

Parameters
$dirstring path to the directory
Returns
array RTVersion

Definition at line 55 of file RTXMLParser.inc.php.

References parse().

& RTXMLParser::parseContext ( $context)

Parse context entity.

Parameters
$contextXMLNode
Returns
RTContext

Definition at line 114 of file RTXMLParser.inc.php.

References parseSearch().

Referenced by parseVersion().

& RTXMLParser::parseSearch ( $search)

Parse search entity.

Parameters
$contextXMLNode
Returns
RTSearch

Definition at line 157 of file RTXMLParser.inc.php.

Referenced by parseContext().

& RTXMLParser::parseVersion ( $version)

Parse version entity.

Parameters
$versionXMLNode
Returns
RTVersion

Definition at line 83 of file RTXMLParser.inc.php.

References parseContext().

Referenced by parse().

Member Data Documentation

XMLParser RTXMLParser::$parser

the parser to use

Definition at line 27 of file RTXMLParser.inc.php.


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