Moodle  2.2.1
http://www.collinsharper.com
BasicXmlParser Class Reference
Inheritance diagram for BasicXmlParser:
Collaboration diagram for BasicXmlParser:

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

Detailed Description

Definition at line 26 of file BasicXmlParser.php.


Member Function Documentation

Constructor public

Definition at line 39 of file BasicXmlParser.php.

Here is the call graph for this function:

cdataHandler ( xp,
cdata 
)

Function to handle character data

Parameters:
$xpXMLParser handle
$cdataCharacter data public

Definition at line 116 of file BasicXmlParser.php.

endHandler ( xp,
name 
)

Function to handle end of an element

Parameters:
$xpXML_Parser handle
$nameName of the element public

Reimplemented from XML_Parser.

Definition at line 87 of file BasicXmlParser.php.

Here is the call graph for this function:

getCData ( )

Returns the CData collected so far.

Returns:
String Character data collected. public

Definition at line 129 of file BasicXmlParser.php.

Here is the caller graph for this function:

Return the document array gathered during parsing. Document array is a data structure that mimics the XML contents.

Returns:
Array Document array public

Definition at line 164 of file BasicXmlParser.php.

getLastOpenTag ( tag)

Returns the name of parent tag of give tag

Parameters:
$tagName of a child tag
Returns:
String Name of the parent tag of $tag public

Definition at line 143 of file BasicXmlParser.php.

Here is the caller graph for this function:

handleAttrTag ( name,
attrs 
)

Function that handles an element with attributes.

Parameters:
$nameName of the element
$attrsAttributes array (name, value pairs)
Returns:
Array An element public

Definition at line 54 of file BasicXmlParser.php.

Here is the caller graph for this function:

startHandler ( xp,
name,
attributes 
)

Function to handle start of an element

Parameters:
$xpXMLParser handle
$nameElement name
$attributesAttribute array public

Reimplemented in CoverageXmlParser.

Definition at line 73 of file BasicXmlParser.php.


Field Documentation

$docroot [protected]

Definition at line 30 of file BasicXmlParser.php.

$openTags [protected]

Definition at line 29 of file BasicXmlParser.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations