|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| BasicXmlParser () | |
| handleAttrTag ($name, $attrs) | |
| startHandler ($xp, $name, $attributes) | |
| endHandler ($xp, $name) | |
| cdataHandler ($xp, $cdata) | |
| getCData () | |
| getLastOpenTag ($tag) | |
| getDocumentArray () | |
Protected Attributes | |
| $openTags | |
| $docroot | |
Definition at line 26 of file BasicXmlParser.php.
| BasicXmlParser | ( | ) |
Constructor public
Definition at line 39 of file BasicXmlParser.php.

| cdataHandler | ( | $ | xp, |
| $ | cdata | ||
| ) |
Function to handle character data
| $xp | XMLParser handle |
| $cdata | Character data public |
Definition at line 116 of file BasicXmlParser.php.
| endHandler | ( | $ | xp, |
| $ | name | ||
| ) |
Function to handle end of an element
| $xp | XML_Parser handle |
| $name | Name of the element public |
Reimplemented from XML_Parser.
Definition at line 87 of file BasicXmlParser.php.

| getCData | ( | ) |
Returns the CData collected so far.
Definition at line 129 of file BasicXmlParser.php.

| getDocumentArray | ( | ) |
Return the document array gathered during parsing. Document array is a data structure that mimics the XML contents.
Definition at line 164 of file BasicXmlParser.php.
| getLastOpenTag | ( | $ | tag | ) |
Returns the name of parent tag of give tag
| $tag | Name of a child tag |
Definition at line 143 of file BasicXmlParser.php.

| handleAttrTag | ( | $ | name, |
| $ | attrs | ||
| ) |
Function that handles an element with attributes.
| $name | Name of the element |
| $attrs | Attributes array (name, value pairs) |
Definition at line 54 of file BasicXmlParser.php.

| startHandler | ( | $ | xp, |
| $ | name, | ||
| $ | attributes | ||
| ) |
Function to handle start of an element
| $xp | XMLParser handle |
| $name | Element name |
| $attributes | Attribute array public |
Reimplemented in CoverageXmlParser.
Definition at line 73 of file BasicXmlParser.php.
$docroot [protected] |
Definition at line 30 of file BasicXmlParser.php.
$openTags [protected] |
Definition at line 29 of file BasicXmlParser.php.