Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

The task that provides a complete restore of mod_h5pactivity is defined here.

Copyright: 2020 Ferran Recio <ferran@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 93 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

restore_h5pactivity_activity_task:: (5 methods):
  define_my_settings()
  define_my_steps()
  define_decode_contents()
  define_decode_rules()
  define_restore_log_rules()


Class: restore_h5pactivity_activity_task  - X-Ref

Restore task for mod_h5pactivity.

define_my_settings()   X-Ref
Defines particular settings that this activity can have.


define_my_steps()   X-Ref
Defines particular steps that this activity can have.

return: base_step.

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

return: array.

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

return: restore_decode_rule[].

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

return: restore_log_rule[].