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.

Define all the backup steps that will be used by the backup_block_task

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

Defines 1 class

restore_activity_results_block_task:: (7 methods):
  define_my_settings()
  define_my_steps()
  get_fileareas()
  get_configdata_encoded_attributes()
  after_restore()
  define_decode_contents()
  define_decode_rules()


Class: restore_activity_results_block_task  - X-Ref

Specialised restore task for the activity_results block
(using execute_after_tasks for recoding of target 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


get_fileareas()   X-Ref
Define the associated file areas


get_configdata_encoded_attributes()   X-Ref
Define special handling of configdata.


after_restore()   X-Ref
This function, executed after all the tasks in the plan
have been executed, will perform the recode of the
target activity for the block. This must be done here
and not in normal execution steps because the activity
can be restored after the block.


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