Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 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.

Differences Between: [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]

(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: 185 lines (7 kb)
Included or required:0 times
Referenced: 1 time
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