Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 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.

Differences Between: [Versions 39 and 401] [Versions 39 and 402] [Versions 39 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