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.

(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