mirror of
https://github.com/moodle/moodle.git
synced 2025-07-13 10:26:31 +02:00
Merge branch 'MDL-76938_restore_comments_401' of https://github.com/davosmith/moodle into MOODLE_401_STABLE
This commit is contained in:
@ -246,16 +246,6 @@ abstract class restore_activity_task extends restore_task {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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
|
* Define (add) particular steps that each activity can have
|
||||||
*/
|
*/
|
||||||
|
@ -95,6 +95,19 @@ abstract class restore_task extends base_task {
|
|||||||
return $this->plan->get_info()->original_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()
|
* If the task has been executed, launch its after_restore()
|
||||||
* method if available
|
* method if available
|
||||||
|
Reference in New Issue
Block a user