Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is 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[].