Search moodle.org's
Developer Documentation

See Release Notes

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

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

This file contains functions used by the participation reports

Copyright: 2014 Rajesh Taneja <rajesh@moodle.com>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 231 lines (8 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 6 functions


Functions that are not part of a class:

report_participation_get_log_table_name()   X-Ref
Returns log table name of preferred reader, if leagcy then return empty string.

return: string table name

report_participation_get_time_options($minlog)   X-Ref
Return time options, which should be shown for record filtering.

param: int $minlog Time of first log record available.
return: array time options.

report_participation_get_action_sql($action, $modname)   X-Ref
Return action sql and params.

param: string $action action to be filtered.
param: string $modname module name.
return: array actionsql and actionparams.

report_participation_get_crud_sql($action)   X-Ref
Return crud sql and params.

param: string $action action to be filtered.
return: array crudsql and crudparams.

report_participation_get_action_options()   X-Ref
List of action filters.

return: array

report_participation_print_filter_form($course, $timefrom, $minlog, $action, $roleid, $instanceid)   X-Ref
Print filter form.

param: stdClass $course course object.
param: int $timefrom Time from which records should be fetched.
param: int $minlog Time of first record present in log store.
param: string $action action to be filtered.
param: int $roleid Role to be filtered.
param: int $instanceid Instance id of module.