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.

(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: 128 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

restore_decode_content:: (7 methods):
  __construct()
  set_restoreid()
  process()
  get_iterator()
  update_iterator_row()
  preprocess_field()
  postprocess_field()

restore_decode_content_exception:: (1 method):
  __construct()


Class: restore_decode_content  - X-Ref

Helper class in charge of providing the contents to be processed by restore_decode_rules

This class is in charge of looking (in DB) for the contents needing to be
processed by the declared restore_decode_rules. Basically it iterates over
one recordset (optimised by joining them with backup_ids records), retrieving
them from DB, delegating process to the restore_plan and storing results back
to DB.

Implements one visitor-like pattern so the decode_processor will visit it
to get all the contents processed by its defined rules

TODO: Complete phpdocs
__construct($tablename, $fields, $mapping = null)   X-Ref
No description

set_restoreid($restoreid)   X-Ref
No description

process($processor)   X-Ref
No description

get_iterator()   X-Ref
No description

update_iterator_row($row)   X-Ref
No description

preprocess_field($field)   X-Ref
No description

postprocess_field($field)   X-Ref
No description

Class: restore_decode_content_exception  - X-Ref

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