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

Public Member Functions

 __construct ()
 process_chunk ($data)
 before_path ($path)
 after_path ($path)
 process_cdata ($cdata)
 debug_info ()
 receive_chunk ($data)

Protected Attributes

 $inittime
 $chunks

Detailed Description

This abstract class implements one progressive_parser_processor

Processor that will receive chunks of data from the and will perform all sort of operations with them (join, split, invoke other methods, output, whatever...

You will need to extend this class to get the expected functionality by implementing the () method to handle different chunks of information and, optionally, the () to process each cdata piece individually before being "published" to the chunk processor.

The "propietary array format" that the parser publishes to the is this: array ( 'path' => path where the tags belong to, 'level'=> level (1-based) of the tags 'tags => array ( 'name' => name of the tag, 'attrs'=> array( name of the attr => value of the attr), 'cdata => cdata of the tag ) )

TODO: Finish phpdocs

Definition at line 52 of file progressive_parser_processor.class.php.


Constructor & Destructor Documentation

Reimplemented in restore_moodlexml_parser_processor, and findpaths_parser_processor.

Definition at line 57 of file progressive_parser_processor.class.php.

Here is the caller graph for this function:


Member Function Documentation

after_path ( path)

The parser fires this each time one path has been parsed

Reimplemented in simplified_parser_processor, and grouped_parser_processor.

Definition at line 75 of file progressive_parser_processor.class.php.

before_path ( path)

The parser fires this each time one path is going to be parsed

Reimplemented in simplified_parser_processor, and grouped_parser_processor.

Definition at line 70 of file progressive_parser_processor.class.php.

Reimplemented in findpaths_parser_processor.

Definition at line 84 of file progressive_parser_processor.class.php.

process_chunk ( data) [abstract]
receive_chunk ( data)

Definition at line 90 of file progressive_parser_processor.class.php.

Here is the call graph for this function:


Field Documentation

$chunks [protected]

Definition at line 55 of file progressive_parser_processor.class.php.

$inittime [protected]

Definition at line 54 of file progressive_parser_processor.class.php.


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