|
Open Monograph Press
3.3.0
|
Public Member Functions | |
| __construct ($listName) | |
| characterData ($parser, $data) | |
| endElement ($parser, $tag) | |
| getResult () | |
| startElement ($parser, $tag, $attributes) | |
Public Member Functions inherited from XMLParserDOMHandler | |
| __construct () | |
| destroy () | |
Data Fields | |
| $_currentValue = null | |
| $_foundRequestedList = false | |
| $_insideDocumentation = false | |
| $_listItems = null | |
| $_listName = null | |
Data Fields inherited from XMLParserDOMHandler | |
| $currentData | |
| $currentNode | |
| $rootNode | |
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.
Example: <xs:simpleType name="List30">...</xs:simpleType>
Definition at line 25 of file ONIXParserDOMHandler.inc.php.
| ONIXParserDOMHandler::__construct | ( | $listName | ) |
| ONIXParserDOMHandler::characterData | ( | $parser, | |
| $data | |||
| ) |
Callback function to act as the character data handler.
| $parser | XMLParser |
| $data | string |
Reimplemented from XMLParserDOMHandler.
Definition at line 113 of file ONIXParserDOMHandler.inc.php.
References $_currentValue.
| ONIXParserDOMHandler::endElement | ( | $parser, | |
| $tag | |||
| ) |
Callback function to act as the end element handler.
| $parser | XMLParser |
| $tag | string |
Reimplemented from XMLParserDOMHandler.
Definition at line 127 of file ONIXParserDOMHandler.inc.php.
| ONIXParserDOMHandler::getResult | ( | ) |
Returns the array of found list items
Reimplemented from XMLParserDOMHandler.
Definition at line 143 of file ONIXParserDOMHandler.inc.php.
| ONIXParserDOMHandler::startElement | ( | $parser, | |
| $tag, | |||
| $attributes | |||
| ) |
Callback function to act as the start element handler.
| $parser | XMLParser |
| $tag | string |
| $attributes | array |
Reimplemented from XMLParserDOMHandler.
Definition at line 73 of file ONIXParserDOMHandler.inc.php.
References $_currentValue.
| string ONIXParserDOMHandler::$_currentValue = null |
to store the current character data
Definition at line 49 of file ONIXParserDOMHandler.inc.php.
Referenced by characterData(), and startElement().
| boolean ONIXParserDOMHandler::$_foundRequestedList = false |
to maintain state
Definition at line 37 of file ONIXParserDOMHandler.inc.php.
| boolean ONIXParserDOMHandler::$_insideDocumentation = false |
currently inside an xs:documentation element
Definition at line 55 of file ONIXParserDOMHandler.inc.php.
| array ONIXParserDOMHandler::$_listItems = null |
of items the parser eventually returns
Definition at line 43 of file ONIXParserDOMHandler.inc.php.
| string ONIXParserDOMHandler::$_listName = null |
the list being searched for
Definition at line 31 of file ONIXParserDOMHandler.inc.php.