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]

Standard log reader/writer.

Copyright: 2013 Petr Skoda {@link http://skodak.org}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 161 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: store  - X-Ref

__construct(\tool_log\log\manager $manager)   X-Ref
No description

is_event_ignored(\core\event\base $event)   X-Ref
Should the event be ignored (== not logged)?

param: \core\event\base $event
return: bool

insert_event_entries($evententries)   X-Ref
Finally store the events into the database.

param: array $evententries raw event data

get_events_select($selectwhere, array $params, $sort, $limitfrom, $limitnum)   X-Ref
No description

get_events_select_iterator($selectwhere, array $params, $sort, $limitfrom, $limitnum)   X-Ref
Fetch records using given criteria returning a Traversable object.

Note that the traversable object contains a moodle_recordset, so
remember that is important that you call close() once you finish
using it.

param: string $selectwhere
param: array $params
param: string $sort
param: int $limitfrom
param: int $limitnum
return: \core\dml\recordset_walk|\core\event\base[]

get_log_event($data)   X-Ref
Returns an event from the log data.

param: stdClass $data Log data
return: \core\event\base

get_events_select_count($selectwhere, array $params)   X-Ref
No description

get_internal_log_table_name()   X-Ref
No description

is_logging()   X-Ref
Are the new events appearing in the reader?

return: bool true means new log events are being added, false means no new data will be added