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

Protected Member Functions

 execute_condition ()
 define_structure ()
 process_log ($data)

Detailed Description

This structure step restores course logs (cmid = 0), delegating the hard work to the corresponding restore_logs_processor passing the collection of restore_log_rule rules to be observed as they are defined by the task. Note this is only executed based in the 'logs' setting.

NOTE: This is executed by final task, to have all the activities already restored

NOTE: Not all course logs are being restored. For now only 'course' and 'user' records are. There are others like 'calendar' and 'upload' that will be handled later.

NOTE: All the missing actions (not able to be restored) are sent to logs for debugging purposes

Definition at line 1841 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 1865 of file restore_stepslib.php.

execute_condition ( ) [protected]

Conditionally decide if this step should be executed.

This function checks the following parameter:

1. the course/logs.xml file exists

Returns:
bool true is safe to execute, false otherwise

Reimplemented from restore_structure_step.

Definition at line 1852 of file restore_stepslib.php.

process_log ( data) [protected]

Reimplemented in restore_activity_logs_structure_step.

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