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

Go to the source code of this file.

Namespaces

namespace  report

Enumerations

enum  DEFAULT_PAGE_SIZE
enum  SHOW_ALL_PAGE_SIZE

Variables

 $id = required_param('id', PARAM_INT)
 $roleid = optional_param('roleid', 0, PARAM_INT)
 $instanceid = optional_param('instanceid', 0, PARAM_INT)
 $timefrom = optional_param('timefrom', 0, PARAM_INT)
 $action = optional_param('action', '', PARAM_ALPHA)
 $page = optional_param('page', 0, PARAM_INT)
 $perpage = optional_param('perpage', DEFAULT_PAGE_SIZE, PARAM_INT)
 $url = new moodle_url('/report/participation/index.php', array('id'=>$id))
 $context = get_context_instance(CONTEXT_COURSE, $course->id)
 $strparticipation = get_string('participationreport')
 $strviews = get_string('views')
 $strposts = get_string('posts')
 $strview = get_string('view')
 $strpost = get_string('post')
 $strallactions = get_string('allactions')
 $strreports = get_string('reports')
 $actionoptions
 $modinfo = get_fast_modinfo($course)
 $modules = $DB->get_records_select('modules', "visible = 1", null, 'name ASC')
 $instanceoptions = array()
foreach($modules as $module) $timeoptions = array()
 $minlog = $DB->get_field_sql('SELECT min(time) FROM {log} WHERE course = ?', array($course->id))
 $now = usergetmidnight(time())
for($i=1;$i< 7;$i++) for($i=1;$i
< 10;$i++) for($i=2;$i< 12;$i++)
if(strtotime('-1 year', $now) >
=$minlog) 
$roleoptions = array()
if($roles=get_roles_used_in_context($context)) $guestrole = get_guest_role()
 $baseurl
 if (!empty($instanceid)&&!empty($roleid))

Enumeration Type Documentation

Definition at line 29 of file index.php.

Definition at line 30 of file index.php.


Variable Documentation

Definition at line 36 of file index.php.

$actionoptions
Initial value:
 array('' => $strallactions,
                       'view' => $strview,
                       'post' => $strpost,)

Definition at line 76 of file index.php.

$baseurl
Initial value:
  $CFG->wwwroot.'/report/participation/index.php?id='.$course->id.'&amp;roleid='
    .$roleid.'&amp;instanceid='.$instanceid.'&amp;timefrom='.$timefrom.'&amp;action='.$action.'&amp;perpage='.$perpage

Definition at line 167 of file index.php.

Definition at line 63 of file index.php.

Definition at line 147 of file index.php.

Definition at line 32 of file index.php.

Definition at line 34 of file index.php.

$instanceoptions = array()

Definition at line 91 of file index.php.

$minlog = $DB->get_field_sql('SELECT min(time) FROM {log} WHERE course = ?', array($course->id))

Definition at line 113 of file index.php.

$modinfo = get_fast_modinfo($course)

Definition at line 87 of file index.php.

$modules = $DB->get_records_select('modules', "visible = 1", null, 'name ASC')

Definition at line 89 of file index.php.

$now = usergetmidnight(time())

Definition at line 115 of file index.php.

Definition at line 37 of file index.php.

$perpage = optional_param('perpage', DEFAULT_PAGE_SIZE, PARAM_INT)

Definition at line 38 of file index.php.

$roleid = optional_param('roleid', 0, PARAM_INT)

Definition at line 33 of file index.php.

if (empty($roleoptions[$guestrole->id])) $roleoptions = array()

Definition at line 140 of file index.php.

$strallactions = get_string('allactions')

Definition at line 73 of file index.php.

$strparticipation = get_string('participationreport')

Definition at line 68 of file index.php.

$strpost = get_string('post')

Definition at line 72 of file index.php.

$strposts = get_string('posts')

Definition at line 70 of file index.php.

$strreports = get_string('reports')

Definition at line 74 of file index.php.

$strview = get_string('view')

Definition at line 71 of file index.php.

$strviews = get_string('views')

Definition at line 69 of file index.php.

$timefrom = optional_param('timefrom', 0, PARAM_INT)

Definition at line 35 of file index.php.

foreach ($modules as $module) $timeoptions = array()

Definition at line 111 of file index.php.

$url = new moodle_url('/report/participation/index.php', array('id'=>$id))

Definition at line 40 of file index.php.

if(!empty($instanceid)&&!empty($roleid))

Definition at line 170 of file index.php.

 All Data Structures Namespaces Files Functions Variables Enumerations