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

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

Definition at line 37 of file index.php.

$course = $DB->get_record('course', array('id'=>$id), '*', MUST_EXIST)

Definition at line 31 of file index.php.

$hiddenfields = explode(',', $CFG->hiddenuserfields)

Definition at line 43 of file index.php.

Definition at line 29 of file index.php.

if ($CFG->useblogassociations) if ($showlastaccess) $modinfo = get_fast_modinfo($course)

Definition at line 81 of file index.php.

$outlinetable = new html_table()

Definition at line 67 of file index.php.

$prevsecctionnum = 0

Definition at line 92 of file index.php.

$sections = get_all_sections($course->id)

Definition at line 82 of file index.php.

$showlastaccess = true

Definition at line 42 of file index.php.

$sql
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.

$stractivity = get_string('activity')

Definition at line 50 of file index.php.

if (array_search('lastaccess', $hiddenfields) and!has_capability('moodle/user:viewhiddendetails', $context)) $stractivityreport = get_string('pluginname', 'report_outline')

Definition at line 49 of file index.php.

$strlast = get_string('lastaccess')

Definition at line 51 of file index.php.

$strrelatedblogentries = get_string('relatedblogentries', 'blog')

Definition at line 54 of file index.php.

$strreports = get_string('reports')

Definition at line 52 of file index.php.

$strviews = get_string('views')

Definition at line 53 of file index.php.

$views = $DB->get_records_sql($sql, array($course->id))

Definition at line 90 of file index.php.

$outlinetable attributes['class'] = 'generaltable boxaligncenter'

Definition at line 68 of file index.php.

$outlinetable cellpadding = 5

Definition at line 69 of file index.php.

foreach($modinfo->sections as $sectionnum=> $section)

Definition at line 93 of file index.php.

$outlinetable head = array($stractivity, $strviews)

Definition at line 71 of file index.php.

$outlinetable id = 'outlinetable'

Definition at line 70 of file index.php.

if(!$logstart=$DB->get_field_sql("SELECT MIN(time) FROM {log}"))

Definition at line 61 of file index.php.

 All Data Structures Namespaces Files Functions Variables Enumerations