Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

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

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