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

Public Member Functions

 __construct ($name, $info, $plan=null)
 get_taskbasepath ()
 set_moduleid ($moduleid)
 set_old_moduleversion ($oldmoduleversion)
 set_activityid ($activityid)
 set_old_activityid ($activityid)
 set_contextid ($contextid)
 set_old_contextid ($contextid)
 get_modulename ()
 get_moduleid ()
 get_old_moduleversion ()
 get_activityid ()
 get_old_activityid ()
 get_contextid ()
 get_old_contextid ()
 build ()
 execute ()
 get_setting ($name)
 get_comment_mapping_itemname ($commentarea)

Static Public Member Functions

static define_decode_contents ()
static define_decode_rules ()
static define_restore_log_rules ()

Protected Member Functions

 define_my_steps ()
 define_settings ()
 define_my_settings ()

Protected Attributes

 $info
 $modulename
 $moduleid
 $oldmoduleid
 $oldmoduleversion
 $contextid
 $oldcontextid
 $activityid
 $oldactivityid

Detailed Description

abstract activity task that provides all the properties and common tasks to be performed when one activity is being restored

TODO: Finish phpdocs

Definition at line 31 of file restore_activity_task.class.php.


Constructor & Destructor Documentation

__construct ( name,
info,
plan = null 
)

Constructor - instantiates one object of this class

Definition at line 46 of file restore_activity_task.class.php.

Here is the call graph for this function:


Member Function Documentation

build ( )

Create all the steps that will be part of this task

Reimplemented from base_task.

Definition at line 121 of file restore_activity_task.class.php.

Here is the call graph for this function:

define_settings ( ) [protected]

Define the common setting that any restore activity will have

Reimplemented from base_task.

Definition at line 258 of file restore_activity_task.class.php.

Here is the call graph for this function:

execute ( )

Exceptionally override the execute method, so, based in the activity_included setting, we are able to skip the execution of one task completely

Reimplemented from base_task.

Definition at line 174 of file restore_activity_task.class.php.

Here is the call graph for this function:

Definition at line 102 of file restore_activity_task.class.php.

get_comment_mapping_itemname ( commentarea)

Given a commment area, return the itemname that contains the itemid mappings

By default both are the same (commentarea = itemname), so return it. If some module uses a different approach, this method can be overriden in its taks

Definition at line 218 of file restore_activity_task.class.php.

Definition at line 110 of file restore_activity_task.class.php.

Definition at line 94 of file restore_activity_task.class.php.

Definition at line 90 of file restore_activity_task.class.php.

Definition at line 106 of file restore_activity_task.class.php.

Reimplemented from restore_task.

Definition at line 114 of file restore_activity_task.class.php.

Definition at line 98 of file restore_activity_task.class.php.

get_setting ( name)

Specialisation that, first of all, looks for the setting within the task with the the prefix added and later, delegates to parent without adding anything

Reimplemented from base_task.

Definition at line 192 of file restore_activity_task.class.php.

Here is the call graph for this function:

Activity tasks have their own directory to read files

Reimplemented from base_task.

Definition at line 62 of file restore_activity_task.class.php.

Here is the call graph for this function:

set_activityid ( activityid)

Definition at line 74 of file restore_activity_task.class.php.

set_contextid ( contextid)

Definition at line 82 of file restore_activity_task.class.php.

set_moduleid ( moduleid)

Definition at line 66 of file restore_activity_task.class.php.

set_old_activityid ( activityid)

Definition at line 78 of file restore_activity_task.class.php.

set_old_contextid ( contextid)

Definition at line 86 of file restore_activity_task.class.php.

set_old_moduleversion ( oldmoduleversion)

Definition at line 70 of file restore_activity_task.class.php.


Field Documentation

$activityid [protected]

Definition at line 40 of file restore_activity_task.class.php.

$contextid [protected]

Definition at line 38 of file restore_activity_task.class.php.

$info [protected]

Definition at line 33 of file restore_activity_task.class.php.

$moduleid [protected]

Definition at line 35 of file restore_activity_task.class.php.

$modulename [protected]

Definition at line 34 of file restore_activity_task.class.php.

$oldactivityid [protected]

Definition at line 41 of file restore_activity_task.class.php.

$oldcontextid [protected]

Definition at line 39 of file restore_activity_task.class.php.

$oldmoduleid [protected]

Definition at line 36 of file restore_activity_task.class.php.

$oldmoduleversion [protected]

Definition at line 37 of file restore_activity_task.class.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations