Go to the source code of this file.
Namespaces |
| namespace | report |
Variables |
| | $report = optional_param('report', STATS_REPORT_ACTIVE_COURSES, PARAM_INT) |
| | $time = optional_param('time', 0, PARAM_INT) |
| | $numcourses = optional_param('numcourses', 20, PARAM_INT) |
| | $course = get_site() |
| | $strreports = get_string('reports') |
| | $strcourseoverview = get_string('courseoverview') |
| | $reportoptions = stats_get_report_options($course->id,STATS_MODE_RANKED) |
| | $earliestday = $DB->get_field_sql('SELECT MIN(timeend) FROM {stats_daily}') |
| | $earliestweek = $DB->get_field_sql('SELECT MIN(timeend) FROM {stats_weekly}') |
| | $earliestmonth = $DB->get_field_sql('SELECT MIN(timeend) FROM {stats_monthly}') |
| | $now = stats_get_base_daily() |
| | $lastweekend = stats_get_base_weekly() |
| | $lastmonthend = stats_get_base_monthly() |
| | $timeoptions = stats_get_time_options($now,$lastweekend,$lastmonthend,$earliestday,$earliestweek,$earliestmonth) |
| | if (empty($timeoptions)) |
| | $table = new html_table() |
| $table | width = '*' |
| $table | align = array('left','left','left','left','left','left') |
| | $reporttypemenu = html_writer::select($reportoptions,'report',$report, false) |
| | $timeoptionsmenu = html_writer::select($timeoptions,'time',$time, false) |
| $table | data [] |
Variable Documentation
| $earliestday = $DB->get_field_sql('SELECT MIN(timeend) FROM {stats_daily}') |
| $earliestmonth = $DB->get_field_sql('SELECT MIN(timeend) FROM {stats_monthly}') |
| $earliestweek = $DB->get_field_sql('SELECT MIN(timeend) FROM {stats_weekly}') |
| $timeoptions = stats_get_time_options($now,$lastweekend,$lastmonthend,$earliestday,$earliestweek,$earliestmonth) |
Initial value:
Definition at line 81 of file index.php.
| if(!empty($report)&&!empty($time)) |