Go to the source code of this file.
Namespaces |
| namespace | report |
Variables |
| | $id = required_param('id',PARAM_INT) |
| | $course = $DB->get_record('course', array('id'=>$id), '*', MUST_EXIST) |
| | $context = get_context_instance(CONTEXT_COURSE, $course->id) |
| | $showlastaccess = true |
| | $hiddenfields = explode(',', $CFG->hiddenuserfields) |
if(array_search('lastaccess',
$hiddenfields)
and!has_capability('moodle/user:viewhiddendetails',
$context)) | $stractivityreport = get_string('pluginname', 'report_outline') |
| | $stractivity = get_string('activity') |
| | $strlast = get_string('lastaccess') |
| | $strreports = get_string('reports') |
| | $strviews = get_string('views') |
| | $strrelatedblogentries = get_string('relatedblogentries', 'blog') |
| | if (!$logstart=$DB->get_field_sql("SELECT MIN(time) FROM {log}")) |
| | $outlinetable = new html_table() |
| $outlinetable | attributes ['class'] = 'generaltable boxaligncenter' |
| $outlinetable | cellpadding = 5 |
| $outlinetable | id = 'outlinetable' |
| $outlinetable | head = array($stractivity, $strviews) |
if($CFG->useblogassociations)
if($showlastaccess) | $modinfo = get_fast_modinfo($course) |
| | $sections = get_all_sections($course->id) |
| | $sql |
| | $views = $DB->get_records_sql($sql, array($course->id)) |
| | $prevsecctionnum = 0 |
| | foreach ($modinfo->sections as $sectionnum=> $section) |
Variable Documentation
| $hiddenfields = explode(',', $CFG->hiddenuserfields) |
Initial value:"SELECT cm.id, COUNT('x') AS numviews, MAX(time) AS lasttime
FROM {course_modules} cm
JOIN {modules} m ON m.id = cm.module
JOIN {log} l ON l.cmid = cm.id
WHERE cm.course = ? AND l.action LIKE 'view%' AND m.visible = 1
GROUP BY cm.id"
Definition at line 84 of file index.php.
| if (array_search('lastaccess', $hiddenfields) and!has_capability('moodle/user:viewhiddendetails', $context)) $stractivityreport = get_string('pluginname', 'report_outline') |
| $strrelatedblogentries = get_string('relatedblogentries', 'blog') |
| $outlinetable attributes['class'] = 'generaltable boxaligncenter' |
| foreach($modinfo->sections as $sectionnum=> $section) |
| $outlinetable head = array($stractivity, $strviews) |
| $outlinetable id = 'outlinetable' |