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 310] [Versions 39 and 402] [Versions 39 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.