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

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

groups_param_action ( prefix = 'act_')

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.

Here is the call graph for this function:


Variable Documentation

Definition at line 17 of file index.php.

$atleastonemember = false

Definition at line 232 of file index.php.

Definition at line 48 of file index.php.

Definition at line 31 of file index.php.

Definition at line 14 of file index.php.

$currenttab = 'groups'

Definition at line 140 of file index.php.

$disabled = 'disabled="disabled"'

Definition at line 143 of file index.php.

$groupid = optional_param('group', false, PARAM_INT)

Definition at line 15 of file index.php.

Definition at line 179 of file index.php.

$member_names = array()

Definition at line 230 of file index.php.

$returnurl = $CFG->wwwroot.'/group/index.php?id='.$courseid

Definition at line 26 of file index.php.

$selectedname = ' '

Definition at line 180 of file index.php.

if (!has_capability('moodle/course:managegroups', $context)) if (!$singlegroup) switch ($action) $strgroups = get_string('groups')

Definition at line 130 of file index.php.

$strparticipants = get_string('participants')

Definition at line 131 of file index.php.

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

Definition at line 33 of file index.php.

Definition at line 16 of file index.php.

Definition at line 246 of file index.php.

 All Data Structures Namespaces Files Functions Variables Enumerations