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.

Restore implementation for the (tool_log) logstore_database subplugin.

Copyright: 2015 Mark Nelson <markn@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 102 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

restore_logstore_database_subplugin:: (3 methods):
  __construct()
  define_logstore_subplugin_structure()
  process_logstore_database_log()


Class: restore_logstore_database_subplugin  - X-Ref

__construct($subplugintype, $subpluginname, $step)   X-Ref
The constructor for this logstore.

param: string $subplugintype the subplugin type.
param: string $subpluginname the subplugin name.
param: restore_structure_step $step.

define_logstore_subplugin_structure()   X-Ref
Returns the subplugin structure to attach to the 'logstore' XML element.

return: restore_path_element[] array of elements to be processed on restore.

process_logstore_database_log($data)   X-Ref
Process logstore_database_log entries.

This method proceeds to read, complete, remap and, finally,
discard or save every log entry.

param: array() $data log entry.
return: null if we are not restoring the log.