Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/report/courseoverview/index.php File Reference

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

Definition at line 45 of file index.php.

$earliestday = $DB->get_field_sql('SELECT MIN(timeend) FROM {stats_daily}')

Definition at line 53 of file index.php.

$earliestmonth = $DB->get_field_sql('SELECT MIN(timeend) FROM {stats_monthly}')

Definition at line 55 of file index.php.

$earliestweek = $DB->get_field_sql('SELECT MIN(timeend) FROM {stats_weekly}')

Definition at line 54 of file index.php.

$lastmonthend = stats_get_base_monthly()

Definition at line 63 of file index.php.

$lastweekend = stats_get_base_weekly()

Definition at line 62 of file index.php.

Definition at line 61 of file index.php.

$numcourses = optional_param('numcourses', 20, PARAM_INT)

Definition at line 32 of file index.php.

Definition at line 30 of file index.php.

Definition at line 51 of file index.php.

$reporttypemenu = html_writer::select($reportoptions,'report',$report, false)

Definition at line 78 of file index.php.

$strcourseoverview = get_string('courseoverview')

Definition at line 49 of file index.php.

$strreports = get_string('reports')

Definition at line 48 of file index.php.

$table = new html_table()

Definition at line 74 of file index.php.

Definition at line 31 of file index.php.

$timeoptions = stats_get_time_options($now,$lastweekend,$lastmonthend,$earliestday,$earliestweek,$earliestmonth)

Definition at line 65 of file index.php.

$timeoptionsmenu = html_writer::select($timeoptions,'time',$time, false)

Definition at line 79 of file index.php.

$table align = array('left','left','left','left','left','left')

Definition at line 76 of file index.php.

$table data[]
Initial value:
 array(get_string('statsreporttype'),$reporttypemenu,
                       get_string('statstimeperiod'),$timeoptionsmenu,
                       '<input type="text" name="numcourses" size="3" maxlength="2" value="'.$numcourses.'" />',
                       '<input type="submit" value="'.get_string('view').'" />')

Definition at line 81 of file index.php.

if(!empty($report)&&!empty($time))

Definition at line 67 of file index.php.

$table width = '*'

Definition at line 75 of file index.php.

 All Data Structures Namespaces Files Functions Variables Enumerations