Moodle  2.2.1
http://www.collinsharper.com
SimpleTestXmlParser Class Reference

Public Member Functions

 SimpleTestXmlParser (&$listener)
 parse ($chunk)
_createParser ()
 _pushNestingTag ($nested)
_getCurrentNestingTag ()
 _popNestingTag ()
 _startElement ($expat, $tag, $attributes)
 _endElement ($expat, $tag)
 _addContent ($expat, $text)
 _default ($expat, $default)

Data Fields

 $_listener
 $_expat
 $_tag_stack
 $_in_content_tag
 $_content
 $_attributes

Detailed Description

Definition at line 474 of file xml.php.


Member Function Documentation

_addContent ( expat,
text 
)

Content between start and end elements.

Parameters:
resource$expatParser handle.
string$textUsually output messages. protected

Definition at line 631 of file xml.php.

Sets up expat as the XML parser.

Returns:
resource Expat handle. protected

Definition at line 518 of file xml.php.

Here is the caller graph for this function:

_default ( expat,
default 
)

XML and Doctype handler. Discards all such content.

Parameters:
resource$expatParser handle.
string$defaultText of default content. protected

Definition at line 644 of file xml.php.

_endElement ( expat,
tag 
)

End of element event.

Parameters:
resource$expatParser handle.
string$tagElement name. protected

Definition at line 597 of file xml.php.

Here is the call graph for this function:

Accessor for current test structure tag.

Returns:
NestedXmlTag The group, case or method tag being parsed. private

Definition at line 543 of file xml.php.

Here is the caller graph for this function:

Ends a nesting tag.

Returns:
NestedXmlTag The group, case or method tag just finished. private

Definition at line 553 of file xml.php.

Here is the caller graph for this function:

_pushNestingTag ( nested)

Opens a new test nesting level.

Returns:
NestedXmlTag The group, case or method tag to start. private

Definition at line 533 of file xml.php.

Here is the caller graph for this function:

_startElement ( expat,
tag,
attributes 
)

Handler for start of event element.

Parameters:
resource$expatParser handle.
string$tagElement name.
hash$attributesName value pairs. Attributes without content are marked as true. protected

Definition at line 577 of file xml.php.

Here is the call graph for this function:

parse ( chunk)

Parses a block of XML sending the results to the listener.

Parameters:
string$chunkBlock of text to read.
Returns:
boolean True if valid XML. public

Definition at line 504 of file xml.php.

SimpleTestXmlParser ( &$  listener)

Loads a listener with the SimpleReporter interface.

Parameters:
SimpleReporter$listenerListener of tag events. public

Definition at line 488 of file xml.php.

Here is the call graph for this function:


Field Documentation

$_attributes

Definition at line 480 of file xml.php.

$_content

Definition at line 479 of file xml.php.

$_expat

Definition at line 476 of file xml.php.

$_in_content_tag

Definition at line 478 of file xml.php.

$_listener

Definition at line 475 of file xml.php.

$_tag_stack

Definition at line 477 of file xml.php.


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