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

Protected Member Functions

 execute_condition ()
 define_structure ()
 process_completion ($data)

Detailed Description

Structure step that will process the user activity completion information if all these conditions are met:

  • Target site has completion enabled ($CFG->enablecompletion)
  • Activity includes completion info (file_exists)

Definition at line 2433 of file restore_stepslib.php.


Member Function Documentation

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 2459 of file restore_stepslib.php.

execute_condition ( ) [protected]

To conditionally decide if this step must be executed Note the "settings" conditions are evaluated in the corresponding task. Here we check for other conditions not being restore settings (files, site settings...)

Reimplemented from restore_structure_step.

Definition at line 2440 of file restore_stepslib.php.

process_completion ( data) [protected]

Definition at line 2468 of file restore_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