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

Public Member Functions

 process_course_completion_criteria ($data)
 process_course_completion_crit_compl ($data)
 process_course_completions ($data)
 process_course_completion_notify ($data)
 process_course_completion_aggr_methd ($data)

Protected Member Functions

 execute_condition ()
 define_structure ()

Detailed Description

Definition at line 1569 of file restore_stepslib.php.


Member Function Documentation

define_structure ( ) [protected]

Define the course completion structure

Returns:
array Array of restore_path_element

Reimplemented from restore_structure_step.

Definition at line 1621 of file restore_stepslib.php.

Here is the call graph for this function:

execute_condition ( ) [protected]

Conditionally decide if this step should be executed.

This function checks parameters that are not immediate settings to ensure that the enviroment is suitable for the restore of course completion info.

This function checks the following four parameters:

1. Course completion is enabled on the site 2. The backup includes course completion information 3. All modules are restorable 4. All modules are marked for restore.

Returns:
bool True is safe to execute, false otherwise

Reimplemented from restore_structure_step.

Definition at line 1586 of file restore_stepslib.php.

Process course completion aggregate methods

moodle_database $DB

Parameters:
stdClass$data

Definition at line 1802 of file restore_stepslib.php.

Here is the call graph for this function:

Processes course compltion criteria complete records

moodle_database $DB

Parameters:
stdClass$data

Definition at line 1708 of file restore_stepslib.php.

Here is the call graph for this function:

Process course completion criteria

moodle_database $DB

Parameters:
stdClass$data

Definition at line 1646 of file restore_stepslib.php.

Here is the call graph for this function:

Process course completion notification records.

Note: As of Moodle 2.0 this table is not being used however it has been left in in the hopes that one day the functionality there will be completed

moodle_database $DB

Parameters:
stdClass$data

Definition at line 1777 of file restore_stepslib.php.

Here is the call graph for this function:

Process course completions

moodle_database $DB

Parameters:
stdClass$data

Definition at line 1745 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