Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 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.

(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: 1 time
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