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.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401]

Restore support for tool_log logstore subplugins.

Copyright: 2015 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 157 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 classes

restore_tool_log_logstore_subplugin:: (1 method):
  process_log()

not:: (0 methods):

not:: (0 methods):


Class: restore_tool_log_logstore_subplugin  - X-Ref

Parent class of all the logstore subplugin implementations.

Note: While this intermediate class is not strictly required and all the
subplugin implementations can extend directly {@link restore_subplugin},
it is always recommended to have it, both for better testing and also
for sharing code between all subplugins.
process_log($data, bool $jsonformat = false)   X-Ref
Process log entries.

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

param: array $data log entry.
param: bool $jsonformat If true, uses JSON format for the 'other' field
return: object|null $dataobject A data object with values for one or more fields in the record,

Class: not  - X-Ref

Class: not  - X-Ref