Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401]

(no description)

Copyright: 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 138 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: restore_data_activity_task  - X-Ref

data restore task that provides all the settings and steps to perform one
complete restore of the activity

define_my_settings()   X-Ref
Define (add) particular settings this activity can have


define_my_steps()   X-Ref
Define (add) particular steps this activity can have


define_decode_contents()   X-Ref
Define the contents in the activity that must be
processed by the link decoder


define_decode_rules()   X-Ref
Define the decoding rules for links belonging
to the activity to be executed by the link decoder


define_restore_log_rules()   X-Ref
Define the restore log rules that will be applied
by the {@link restore_logs_processor} when restoring
data logs. It must return one array
of {@link restore_log_rule} objects


define_restore_log_rules_for_course()   X-Ref
Define the restore log rules that will be applied
by the {@link restore_logs_processor} when restoring
course logs. It must return one array
of {@link restore_log_rule} objects

Note this rules are applied when restoring course logs
by the restore final task, but are defined here at
activity level. All them are rules not linked to any module instance (cmid = 0)

get_comment_mapping_itemname($commentarea)   X-Ref
Given a commment area, return the itemname that contains the itemid mappings.

param: string $commentarea Comment area name e.g. database_entry.
return: string name of the mapping used to determine the itemid.