[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/report/participation/ -> locallib.php (summary)

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: 234 lines (8 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 6 functions

  report_participation_get_log_table_name()
  report_participation_get_time_options()
  report_participation_get_action_sql()
  report_participation_get_crud_sql()
  report_participation_get_action_options()
  report_participation_print_filter_form()

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.



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1