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


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 | |
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.
| __construct | ( | $ | name, |
| $ | info, | ||
| $ | plan = null |
||
| ) |
Constructor - instantiates one object of this class
Definition at line 46 of file restore_activity_task.class.php.

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

| static define_decode_contents | ( | ) | [static] |
Define the contents in the activity that must be processed by the link decoder
Reimplemented in restore_lti_activity_task, restore_quiz_activity_task, restore_assignment_activity_task, restore_chat_activity_task, restore_choice_activity_task, restore_data_activity_task, restore_folder_activity_task, restore_forum_activity_task, restore_glossary_activity_task, restore_imscp_activity_task, restore_label_activity_task, restore_lesson_activity_task, restore_page_activity_task, restore_resource_activity_task, restore_survey_activity_task, restore_url_activity_task, restore_wiki_activity_task, restore_workshop_activity_task, restore_feedback_activity_task, and restore_scorm_activity_task.
Definition at line 231 of file restore_activity_task.class.php.
| static define_decode_rules | ( | ) | [static] |
Define the decoding rules for links belonging to the activity to be executed by the link decoder
Reimplemented in restore_lti_activity_task, restore_data_activity_task, restore_quiz_activity_task, restore_workshop_activity_task, restore_chat_activity_task, restore_feedback_activity_task, restore_forum_activity_task, restore_glossary_activity_task, restore_wiki_activity_task, restore_assignment_activity_task, restore_choice_activity_task, restore_folder_activity_task, restore_imscp_activity_task, restore_label_activity_task, restore_lesson_activity_task, restore_page_activity_task, restore_resource_activity_task, restore_survey_activity_task, restore_url_activity_task, and restore_scorm_activity_task.
Definition at line 239 of file restore_activity_task.class.php.
| define_my_settings | ( | ) | [abstract, protected] |
Define (add) particular settings that each activity can have
Reimplemented in restore_lti_activity_task, restore_quiz_activity_task, restore_assignment_activity_task, restore_chat_activity_task, restore_choice_activity_task, restore_data_activity_task, restore_folder_activity_task, restore_forum_activity_task, restore_glossary_activity_task, restore_imscp_activity_task, restore_label_activity_task, restore_lesson_activity_task, restore_page_activity_task, restore_resource_activity_task, restore_survey_activity_task, restore_url_activity_task, restore_wiki_activity_task, restore_workshop_activity_task, restore_feedback_activity_task, and restore_scorm_activity_task.

| define_my_steps | ( | ) | [abstract, protected] |
Define (add) particular steps that each activity can have
Reimplemented in restore_lti_activity_task, restore_quiz_activity_task, restore_assignment_activity_task, restore_chat_activity_task, restore_choice_activity_task, restore_data_activity_task, restore_folder_activity_task, restore_forum_activity_task, restore_glossary_activity_task, restore_imscp_activity_task, restore_label_activity_task, restore_lesson_activity_task, restore_page_activity_task, restore_resource_activity_task, restore_survey_activity_task, restore_url_activity_task, restore_wiki_activity_task, restore_workshop_activity_task, restore_feedback_activity_task, and restore_scorm_activity_task.

| static define_restore_log_rules | ( | ) | [static] |
Define the restore log rules that will be applied by the restore_logs_processor when restoring activity logs. It must return one array of restore_log_rule objects
Reimplemented in restore_lti_activity_task, restore_quiz_activity_task, restore_data_activity_task, restore_forum_activity_task, restore_lesson_activity_task, restore_workshop_activity_task, restore_feedback_activity_task, restore_wiki_activity_task, restore_chat_activity_task, restore_glossary_activity_task, restore_url_activity_task, restore_assignment_activity_task, restore_choice_activity_task, restore_folder_activity_task, restore_imscp_activity_task, restore_page_activity_task, restore_resource_activity_task, restore_survey_activity_task, restore_scorm_activity_task, and restore_label_activity_task.
Definition at line 249 of file restore_activity_task.class.php.
| 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.

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

| get_activityid | ( | ) |
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.
| get_contextid | ( | ) |
Definition at line 110 of file restore_activity_task.class.php.
| get_moduleid | ( | ) |
Definition at line 94 of file restore_activity_task.class.php.
| get_modulename | ( | ) |
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.

| get_taskbasepath | ( | ) |
Activity tasks have their own directory to read files
Reimplemented from base_task.
Definition at line 62 of file restore_activity_task.class.php.

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