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

Defines 2 classes

restore_logs_processor:: (4 methods):
  __construct()
  get_instance()
  process_log_record()
  register_log_rules_for_course()

restore_logs_processor_exception:: (1 method):
  __construct()


Class: restore_logs_processor  - X-Ref

This class is one varying singleton that, for all the logs corresponding to
one task, is in charge of storing all its {@link restore_log_rule} rules,
dispatching to the correct one and insert/log the resulting information.

Each time the task getting the instance changes, the rules are completely
reloaded with the ones in the new task. And all rules are informed with
new fixed values if explicity set.

This class adopts the singleton pattern to be able to provide some persistency
of rules along the restore of all the logs corresponding to one restore_task
__construct($values)   X-Ref
No description

get_instance($task, $values)   X-Ref
No description

process_log_record($log)   X-Ref
No description

register_log_rules_for_course()   X-Ref
Adds all the activity {@link restore_log_rule} rules
defined in activity task but corresponding to log
records at course level (cmid = 0).


Class: restore_logs_processor_exception  - X-Ref

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