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

Public Member Functions

 __construct ($courseid, $step)
 process_cdata ($cdata)

Protected Member Functions

 postprocess_chunk ($data)
 dispatch_chunk ($data)
 notify_path_start ($path)
 notify_path_end ($path)

Protected Attributes

 $courseid
 $step

Detailed Description

helper implementation of grouped_parser_processor that will support the process of all the moodle2 backup files, with complete specs about what to load (grouped or no), dispatching to corresponding methods and basic decoding of contents (NULLs and legacy file.php uses)

TODO: Complete phpdocs

Definition at line 36 of file restore_structure_parser_processor.class.php.


Constructor & Destructor Documentation

__construct ( courseid,
step 
)

Definition at line 41 of file restore_structure_parser_processor.class.php.

Here is the call graph for this function:


Member Function Documentation

dispatch_chunk ( data) [protected]

Get the already simplified chunk and dispatch it

Reimplemented from simplified_parser_processor.

Definition at line 102 of file restore_structure_parser_processor.class.php.

notify_path_end ( path) [protected]

Get one selected path and notify about end

Reimplemented from simplified_parser_processor.

Definition at line 110 of file restore_structure_parser_processor.class.php.

notify_path_start ( path) [protected]

Get one selected path and notify about start

Reimplemented from simplified_parser_processor.

Definition at line 106 of file restore_structure_parser_processor.class.php.

postprocess_chunk ( data) [protected]

Override this method so we'll be able to skip dispatching some well-known chunks, like the ones being 100% part of subplugins stuff. Useful for allowing development without having all the possible restore subplugins defined

Reimplemented from grouped_parser_processor.

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

Here is the call graph for this function:

process_cdata ( cdata)

Provide NULL and legacy file.php uses decoding

Reimplemented from progressive_parser_processor.

Definition at line 50 of file restore_structure_parser_processor.class.php.

Here is the call graph for this function:


Field Documentation

$courseid [protected]

Definition at line 38 of file restore_structure_parser_processor.class.php.

$step [protected]

Definition at line 39 of file restore_structure_parser_processor.class.php.


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