Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402]

(no description)

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

Defines 2 classes

restore_decode_processor:: (7 methods):
  __construct()
  add_content()
  add_rule()
  execute()
  decode_content()
  register_link_decoders()
  precheck_content()

restore_decode_processor_exception:: (1 method):
  __construct()


Class: restore_decode_processor  - X-Ref

Helper class that will perform all the necessary decoding tasks on restore

This class will register all the restore_decode_content and
restore_decode_rule instances defined by the restore tasks
in order to perform the complete decoding of links in the
final task of the restore_plan execution.

By visiting each content provider will apply all the defined rules

TODO: Complete phpdocs
__construct($restoreid, $sourcewwwroot, $targetwwwroot)   X-Ref
No description

add_content($content)   X-Ref
No description

add_rule($rule)   X-Ref
No description

execute()   X-Ref
Visit all the restore_decode_content providers
that will cause decode_content() to be called
for each content


decode_content($content)   X-Ref
Receive content from restore_decode_content objects
and apply all the restore_decode_rules to them


register_link_decoders($processor)   X-Ref
Adds all the course/section/activity/block contents and rules


precheck_content($content)   X-Ref
Perform some general checks in content. Returning false rules processing is skipped


Class: restore_decode_processor_exception  - X-Ref

__construct($errorcode, $a=NULL, $debuginfo=null)   X-Ref
No description