Namespaces |
| namespace | report |
Enumerations |
| enum | COMPLETION_REPORT_PAGE |
| enum | COMPLETION_REPORT_COL_TITLES |
Functions |
| | csv_quote ($value) |
Variables |
| | $courseid = required_param('course', PARAM_INT) |
| | $format = optional_param('format','',PARAM_ALPHA) |
| | $sort = optional_param('sort','',PARAM_ALPHA) |
| | $edituser = optional_param('edituser', 0, PARAM_INT) |
| | $course = $DB->get_record('course', array('id' => $courseid), '*', MUST_EXIST) |
| | $context = context_course::instance($course->id) |
| | $url = new moodle_url('/report/completion/index.php', array('course'=>$course->id)) |
| | $firstnamesort = ($sort == 'firstname') |
| | $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) |
| | $group = groups_get_course_group($course, true) |
if($group===0 &&$course->
groupmode==SEPARATEGROUPS) | $completion = new completion_info($course) |
| if(!$completion->has_criteria()) | $criteria = array() |
foreach($completion->
get_criteria(COMPLETION_CRITERIA_TYPE_COURSE)
as $criterion) foreach($completion->
get_criteria(COMPLETION_CRITERIA_TYPE_ACTIVITY)
as $criterion) foreach($completion->
get_criteria() as $criterion) | $allow_marking = false |
| | $allow_marking_criteria = null |
| | $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) |
| if(!$grandtotal) | $progress = array() |
| if($total) | $link = $CFG->wwwroot.'/report/completion/?course='.$course->id |
| | $initials = array('first', 'last') |
| | $alphabet = explode(',', get_string('alphabet', 'langconfig')) |
| | $pagingbar = '' |