Namespaces |
| namespace | report |
Enumerations |
| enum | COMPLETION_REPORT_PAGE |
Functions |
| | csv_quote ($value) |
Variables |
| | $id = required_param('course',PARAM_INT) |
| | $course = $DB->get_record('course',array('id'=>$id)) |
| if(!$course) | $context = context_course::instance($course->id) |
| | $sort = optional_param('sort','',PARAM_ALPHA) |
| | $firstnamesort = $sort == 'firstname' |
| | $format = optional_param('format','',PARAM_ALPHA) |
| | $excel = $format == 'excelcsv' |
| | $csv = $format == 'csv' || $excel |
| | $start = optional_param('start', 0, PARAM_INT) |
| | $sifirst = optional_param('sifirst', 'all', PARAM_ALPHA) |
| | $silast = optional_param('silast', 'all', PARAM_ALPHA) |
| | $extrafields = get_extra_user_fields($context) |
| | $leftcols = 1 + count($extrafields) |
| | $url = new moodle_url('/report/progress/index.php', array('course'=>$id)) |
| | $group = groups_get_course_group($course,true) |
if($group===0 &&$course->
groupmode==SEPARATEGROUPS) | $reportsurl = $CFG->wwwroot.'/course/report.php?id='.$course->id |
| | $completion = new completion_info($course) |
| | $activities = $completion->get_activities() |
| | $where = array() |
| | $where_params = array() |
if($sifirst!== 'all') if($silast!==
'all') | $total = $completion->get_num_tracked_users(implode(' AND ', $where), $where_params, $group) |
| | $grandtotal = $completion->get_num_tracked_users('', array(), $group) |
| | $progress = array() |
| if(strlen($sort)) | $link = '&start=' |
| | $initials = array('first', 'last') |
| | $alphabet = explode(',', get_string('alphabet', 'langconfig')) |
| | $pagingbar = '' |