|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| get_task () | |
Protected Member Functions | |
| add_subplugin_structure ($subplugintype, $element) | |
| prepare_activity_structure ($paths) | |
| process_activity ($data) | |
| apply_activity_instance ($newitemid) | |
Abstract structure step, parent of all the activity structure steps. Used to suuport the main <activity ...> tag and process it. Also provides subplugin support for activities.
Definition at line 2502 of file restore_stepslib.php.
| add_subplugin_structure | ( | $ | subplugintype, |
| $ | element | ||
| ) | [protected] |
Definition at line 2504 of file restore_stepslib.php.


| apply_activity_instance | ( | $ | newitemid | ) | [protected] |
This must be invoked immediately after creating the "module" activity record (forum, choice...) and will adjust the new activity id (the instance) in various places
Definition at line 2565 of file restore_stepslib.php.


| get_task | ( | ) |
As far as activity restore steps are implementing restore_subplugin stuff, they need to have the parent task available for wrapping purposes (get course/context....)
Reimplemented from restore_structure_step.
Definition at line 2536 of file restore_stepslib.php.

| prepare_activity_structure | ( | $ | paths | ) | [protected] |
Adds support for the 'activity' path that is common to all the activities and will be processed globally here
Definition at line 2544 of file restore_stepslib.php.

| process_activity | ( | $ | data | ) | [protected] |
Process the activity path, informing the task about various ids, needed later
Definition at line 2554 of file restore_stepslib.php.
