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

Protected Member Functions

 define_structure ()
 process_quiz ($data)
 process_quiz_question_instance ($data)
 process_quiz_feedback ($data)
 process_quiz_override ($data)
 process_quiz_grade ($data)
 process_quiz_attempt ($data)
 process_quiz_attempt_legacy ($data)
 inform_new_usage_id ($newusageid)
 after_execute ()

Detailed Description

Structure step to restore one quiz activity

Definition at line 34 of file restore_quiz_stepslib.php.


Member Function Documentation

after_execute ( ) [protected]

This method will be executed after the whole structure step have been processed

After execution method for code needed to be executed after the whole structure has been processed. Useful for cleaning tasks, files process and others. Simply overwrite in in your steps if needed

Reimplemented from restore_questions_activity_structure_step.

Definition at line 338 of file restore_quiz_stepslib.php.

Here is the call graph for this function:

define_structure ( ) [protected]

Function that will return the structure to be processed by this restore_step. Must return one array of elements

Reimplemented from restore_structure_step.

Definition at line 36 of file restore_quiz_stepslib.php.

Here is the call graph for this function:

inform_new_usage_id ( newusageid) [protected]

When process_question_usage creates the new usage, it calls this method to let the activity link to the new usage. For example, the quiz uses this method to set quiz_attempts.uniqueid to the new usage id.

Parameters:
integer$newusageid

Reimplemented from restore_questions_activity_structure_step.

Definition at line 324 of file restore_quiz_stepslib.php.

Here is the call graph for this function:

process_quiz ( data) [protected]

Definition at line 83 of file restore_quiz_stepslib.php.

Here is the call graph for this function:

process_quiz_attempt ( data) [protected]

Definition at line 298 of file restore_quiz_stepslib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

process_quiz_attempt_legacy ( data) [protected]

Definition at line 314 of file restore_quiz_stepslib.php.

Here is the call graph for this function:

process_quiz_feedback ( data) [protected]

Definition at line 242 of file restore_quiz_stepslib.php.

Here is the call graph for this function:

process_quiz_grade ( data) [protected]

Definition at line 282 of file restore_quiz_stepslib.php.

Here is the call graph for this function:

process_quiz_override ( data) [protected]

Definition at line 254 of file restore_quiz_stepslib.php.

Here is the call graph for this function:

process_quiz_question_instance ( data) [protected]

Definition at line 229 of file restore_quiz_stepslib.php.

Here is the call graph for this function:


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