Go to the source code of this file.
Namespaces |
| namespace | groups |
Functions |
| | groups_param_action ($prefix= 'act_') |
Variables |
| | $courseid = required_param('id', PARAM_INT) |
| | $groupid = optional_param('group', false, PARAM_INT) |
| | $userid = optional_param('user', false, PARAM_INT) |
| | $action = groups_param_action() |
| | $returnurl = $CFG->wwwroot.'/group/index.php?id='.$courseid |
| | $course = $DB->get_record('course', array('id'=>$courseid), '*', MUST_EXIST) |
| | $url = new moodle_url('/group/index.php', array('id'=>$courseid)) |
| | $context = get_context_instance(CONTEXT_COURSE, $course->id) |
if(!has_capability('moodle/course:managegroups',
$context)) if(!$singlegroup)
switch($action) | $strgroups = get_string('groups') |
| | $strparticipants = get_string('participants') |
| | $currenttab = 'groups' |
| | $disabled = 'disabled="disabled"' |
| | $groups = groups_get_all_groups($courseid) |
| | $selectedname = ' ' |
| | $member_names = array() |
| | $atleastonemember = false |
| if($singlegroup) | if (!$atleastonemember) |
Function Documentation
Returns the first button action with the given prefix, taken from POST or GET, otherwise returns false. See /lib/moodlelib.php function optional_param.
- Parameters:
-
| $prefix | 'act_' as in 'action'. |
- Returns:
- string The action without the prefix, or false if no action found.
if (debugging()) echo 'Debug: '.$action;
Definition at line 276 of file index.php.
Variable Documentation
| $atleastonemember = false |
| $disabled = 'disabled="disabled"' |