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

Public Member Functions

 get_task ()

Protected Member Functions

 add_subplugin_structure ($subplugintype, $element)
 prepare_activity_structure ($paths)
 process_activity ($data)
 apply_activity_instance ($newitemid)

Detailed Description

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.


Member Function Documentation

add_subplugin_structure ( subplugintype,
element 
) [protected]

Definition at line 2504 of file restore_stepslib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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....)

Returns:
restore_task

Reimplemented from restore_structure_step.

Definition at line 2536 of file restore_stepslib.php.

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

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.

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