Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
ONIXParserDOMHandler Class Reference
Inheritance diagram for ONIXParserDOMHandler:
XMLParserDOMHandler XMLParserHandler

Public Member Functions

 characterData (&$parser, $data)
 
 endElement (&$parser, $tag)
 
 getResult ()
 
 ONIXParserDOMHandler ($listName)
 
- Public Member Functions inherited from XMLParserDOMHandler
 characterData (&$parser, $data)
 
 endElement (&$parser, $tag)
 
getResult ()
 
 startElement (&$parser, $tag, $attributes)
 
 XMLParserHandler ()
 
- Public Member Functions inherited from XMLParserHandler
 characterData (&$parser, $data)
 
 endElement (&$parser, $tag)
 
getResult ()
 
 startElement (&$parser, $tag, $attributes)
 

Public Attributes

 $_currentValue = null
 
 $_foundRequestedList = false
 
 $_insideDocumentation = false
 
 $_listItems = null
 
 $_listName = null
 

Detailed Description

This parser extracts a specific xs:simpleType based on a name attribute representing a code list within it. It returns the xs:enumeration values within it along with the xs:documentation elements which serve as textual descriptions of the Codelist values.

See Also
XMLParser

Example: <xs:simpleType name="List30">...</xs:simpleType>

Definition at line 25 of file ONIXParserDOMHandler.inc.php.

Member Function Documentation

ONIXParserDOMHandler::characterData ( $parser,
  $data 
)

Callback function to act as the character data handler.

Definition at line 89 of file ONIXParserDOMHandler.inc.php.

References $_currentValue.

ONIXParserDOMHandler::endElement ( $parser,
  $tag 
)

Callback function to act as the end element handler.

Definition at line 98 of file ONIXParserDOMHandler.inc.php.

ONIXParserDOMHandler::getResult ( )

Returns the array of found list items

Returns
array

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

ONIXParserDOMHandler::ONIXParserDOMHandler (   $listName)

Constructor.

Definition at line 45 of file ONIXParserDOMHandler.inc.php.

Member Data Documentation

ONIXParserDOMHandler::$_currentValue = null

to store the current character data

Definition at line 37 of file ONIXParserDOMHandler.inc.php.

Referenced by characterData().

ONIXParserDOMHandler::$_foundRequestedList = false

to maintain state

Definition at line 31 of file ONIXParserDOMHandler.inc.php.

ONIXParserDOMHandler::$_insideDocumentation = false

currently inside an xs:documentation element

Definition at line 40 of file ONIXParserDOMHandler.inc.php.

ONIXParserDOMHandler::$_listItems = null

of items the parser eventually returns

Definition at line 34 of file ONIXParserDOMHandler.inc.php.

ONIXParserDOMHandler::$_listName = null

the list being searched for

Definition at line 28 of file ONIXParserDOMHandler.inc.php.


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