Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 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.

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