Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.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[].