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.

Description of book restore task

Copyright: 2010 Petr Skoda {@link http://skodak.org}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 141 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: restore_book_activity_task  - X-Ref

define_my_settings()   X-Ref
Define (add) particular settings this activity can have

return: void

define_my_steps()   X-Ref
Define (add) particular steps this activity can have

return: void

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

return: array

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

return: array

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

return: array

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

Note this rules are applied when restoring course logs
by the restore final task, but are defined here at
activity level. All them are rules not linked to any module instance (cmid = 0)

return: array