Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403]

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