Skip to content

Commit

Permalink
Merge branch 'MDL-76938_restore_comments' of https://github.com/davos…
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Mar 2, 2023
2 parents 675dada + b395c3f commit 6802f6b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
10 changes: 0 additions & 10 deletions backup/moodle2/restore_activity_task.class.php
Expand Up @@ -246,16 +246,6 @@ public function get_setting($name) {
}
}

/**
* 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
*/
public function get_comment_mapping_itemname($commentarea) {
return $commentarea;
}

/**
* Define (add) particular steps that each activity can have
*/
Expand Down
13 changes: 13 additions & 0 deletions backup/util/plan/restore_task.class.php
Expand Up @@ -95,6 +95,19 @@ public function get_old_system_contextid() {
return $this->plan->get_info()->original_system_contextid;
}

/**
* 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
* plugins use a different approach, this method can be overriden in its task.
*
* @param string $commentarea area defined for this comment
* @return string itemname that contains the related itemid mapping
*/
public function get_comment_mapping_itemname($commentarea) {
return $commentarea;
}

/**
* If the task has been executed, launch its after_restore()
* method if available
Expand Down

0 comments on commit 6802f6b

Please sign in to comment.