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

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 | |
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.
| __construct | ( | ) |
Reimplemented in restore_moodlexml_parser_processor, and findpaths_parser_processor.
Definition at line 57 of file progressive_parser_processor.class.php.

| 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.
| debug_info | ( | ) |
Reimplemented in findpaths_parser_processor.
Definition at line 84 of file progressive_parser_processor.class.php.
| process_cdata | ( | $ | cdata | ) |
Perform custom transformations in the processed cdata
Reimplemented in moodle1_parser_processor, restore_questions_parser_processor, restore_users_parser_processor, restore_roles_parser_processor, and restore_structure_parser_processor.
Definition at line 80 of file progressive_parser_processor.class.php.
| process_chunk | ( | $ | data | ) | [abstract] |
Receive one chunk of information from the parser
Reimplemented in mock_parser_processor, mock_auto_parser_processor, simplified_parser_processor, findpaths_parser_processor, selective_exact_parser_processor, selective_like_parser_processor, null_parser_processor, and simple_parser_processor.

| receive_chunk | ( | $ | data | ) |
Definition at line 90 of file progressive_parser_processor.class.php.

$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.