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

Public Member Functions

 __construct ($restoreid)
 process_cdata ($cdata)

Protected Member Functions

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

Protected Attributes

 $restoreid
 $lastcatid

Detailed Description

helper implementation of grouped_parser_processor that will load all the categories and questions (header info only) from then questions.xml file to the backup_ids table storing the whole structure there for later processing. Note: only "needed" categories are loaded (must have question_categoryref record in backup_ids) Note: parentitemid will contain the category->contextid for categories Note: parentitemid will contain the category->id for questions

TODO: Complete phpdocs

Definition at line 37 of file restore_questions_parser_processor.class.php.


Constructor & Destructor Documentation

__construct ( restoreid)

Definition at line 42 of file restore_questions_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 51 of file restore_questions_parser_processor.class.php.

Here is the call graph for this function:

notify_path_end ( path) [protected]

Get one selected path and notify about end

Reimplemented from simplified_parser_processor.

Definition at line 82 of file restore_questions_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 78 of file restore_questions_parser_processor.class.php.

process_cdata ( cdata)

Provide NULL decoding

Reimplemented from progressive_parser_processor.

Definition at line 89 of file restore_questions_parser_processor.class.php.


Field Documentation

$lastcatid [protected]

Definition at line 40 of file restore_questions_parser_processor.class.php.

$restoreid [protected]

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


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