[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Source view] [Print] [Project Stats]
This file contains functions used by the log reports This files lists the functions that are used during the log report generation.
Copyright: | 1999 onwards Martin Dougiamas (http://dougiamas.com) |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 502 lines (20 kb) |
Included or required: | 0 times |
Referenced: | 2 times |
Includes or requires: | 0 files |
report_log_print_graph($course, $userid, $type, $date=0, $logreader='') X-Ref |
This function is used to generate and display the log activity graph param: stdClass $course course instance param: int $userid id of the user whose logs are needed param: string $type type of logs graph needed (usercourse.png/userday.png) param: int $date timestamp in GMT (seconds since epoch) param: string $logreader Log reader. return: void |
report_log_usercourse($userid, $courseid, $coursestart, $logreader = '') X-Ref |
Select all log records for a given course and user param: int $userid The id of the user as found in the 'user' table. param: int $courseid The id of the course as found in the 'course' table. param: string $coursestart unix timestamp representing course start date and time. param: string $logreader log reader to use. return: array |
report_log_userday($userid, $courseid, $daystart, $logreader = '') X-Ref |
Select all log records for a given course, user, and day param: int $userid The id of the user as found in the 'user' table. param: int $courseid The id of the course as found in the 'course' table. param: string $daystart unix timestamp of the start of the day for which the logs needs to be retrived param: string $logreader log reader to use. return: array |
report_log_print_mnet_selector_form($hostid, $course, $selecteduser=0, $selecteddate='today',$modname="", $modid=0, $modaction='', $selectedgroup=-1, $showcourses=0, $showusers=0, $logformat='showashtml') X-Ref |
This function is used to generate and display Mnet selector form param: int $hostid host id param: stdClass $course course instance param: int $selecteduser id of the selected user param: string $selecteddate Date selected param: string $modname course_module->id param: string $modid number or 'site_errors' param: string $modaction an action as recorded in the logs param: int $selectedgroup Group to display param: int $showcourses whether to show courses if we're over our limit. param: int $showusers whether to show users if we're over our limit. param: string $logformat Format of the logs (downloadascsv, showashtml, downloadasods, downloadasexcel) return: void |
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |