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)) |