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 310 and 311] [Versions 311 and 402] [Versions 311 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: 236 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.