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

Public Member Functions

 process_course ($data)
 process_category ($data)
 process_tag ($data)
 process_allowed_module ($data)

Protected Member Functions

 define_structure ()
 after_execute ()

Detailed Description

Structure step that will read the course.xml file, loading it and performing various actions depending of the site/restore settings. Note that target course always exist before arriving here so this step will be updating the course record (never inserting)

Definition at line 1070 of file restore_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_structure_step.

Definition at line 1210 of file restore_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 1072 of file restore_stepslib.php.

Here is the call graph for this function:

Definition at line 1188 of file restore_stepslib.php.

Here is the call graph for this function:

process_category ( data)

Definition at line 1162 of file restore_stepslib.php.

process_course ( data)

Processing functions go here

moodledatabase $DB

Parameters:
stdClass$data

Definition at line 1103 of file restore_stepslib.php.

Here is the call graph for this function:

process_tag ( data)

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