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

Go to the source code of this file.

Enumerations

enum  USER_SMALL_CLASS
enum  USER_LARGE_CLASS
enum  DEFAULT_PAGE_SIZE
enum  SHOW_ALL_PAGE_SIZE
enum  MODE_BRIEF
enum  MODE_USERDETAILS

Functions

if($userlist) get_course_lastaccess_sql ($accesssince='')
 get_user_lastaccess_sql ($accesssince='')

Variables

 $page = optional_param('page', 0, PARAM_INT)
 $perpage = optional_param('perpage', DEFAULT_PAGE_SIZE, PARAM_INT)
 $mode = optional_param('mode', NULL, PARAM_INT)
 $accesssince = optional_param('accesssince',0,PARAM_INT)
 $search = optional_param('search','',PARAM_RAW)
 $roleid = optional_param('roleid', 0, PARAM_INT)
 $contextid = optional_param('contextid', 0, PARAM_INT)
 $courseid = optional_param('id', 0, PARAM_INT)
 $systemcontext = get_context_instance(CONTEXT_SYSTEM)
 $isfrontpage = ($course->id == SITEID)
 $frontpagectx = get_context_instance(CONTEXT_COURSE, SITEID)
 $allroles = get_all_roles()
 $roles = get_profile_roles($context)
 $allrolenames = array()
 $bulkoperations = has_capability('moodle/course:bulkmessaging', $context)
 $countries = get_string_manager()->get_list_of_countries()
 $strnever = get_string('never')
 $datestring = new stdClass()
$datestring year = get_string('year')
$datestring years = get_string('years')
$datestring day = get_string('day')
$datestring days = get_string('days')
$datestring hour = get_string('hour')
$datestring hours = get_string('hours')
$datestring min = get_string('min')
$datestring mins = get_string('mins')
$datestring sec = get_string('sec')
$datestring secs = get_string('secs')
 $currentgroup = groups_get_course_group($course, true)
if(!$currentgroup) $isseparategroups = ($course->groupmode == SEPARATEGROUPS and !has_capability('moodle/site:accessallgroups', $context))
if($isseparategroups and(!$currentgroup)) $baseurl
$controlstable attributes ['class'] = 'controls'
 setting up tags
$controlstable cellspacing = 0
$controlstable data [] = new html_table_row()
if($mycourses=enrol_get_my_courses())
$controlstable data[0] 
cells [] = groups_print_course_menu($course, $baseurl->out(), true)
 Print my course menus.
if(!isset($hiddenfields['lastaccess'])) $formatmenu
 $select = new single_select($baseurl, 'mode', $formatmenu, $mode, null, 'formatmenu')
 $userlistcell = new html_table_cell()
$userlistcell text = $OUTPUT->render($select)
if($currentgroup and(!$isseparategroups
or has_capability('moodle/site:accessallgroups',
$context))) 
$tablecolumns = array('userpic', 'fullname')
 Define a table showing a list of users in the current role selection.
 $extrafields = get_extra_user_fields($context)
 $tableheaders = array(get_string('userpic'), get_string('fullnameuser'))
if($mode===MODE_BRIEF) if($mode===MODE_BRIEF
&&!isset($hiddenfields['city']))
if($mode===MODE_BRIEF &&!isset($hiddenfields['country']))
if(!isset($hiddenfields['lastaccess']))
if($bulkoperations) 
$table = new flexible_table('user-index-participants-'.$course->id)
 $contextlist = get_related_contexts_string($context)
 $joins = array("FROM {user} u")
 $wheres = array()
 $extrasql
 $joins [] = $ccjoin
if($roleid) $from = implode("\n", $joins)
 $userlist = $DB->get_recordset_sql("$select $from $where $sort", $params, $table->get_page_start(), $table->get_page_size())
if($perpage==SHOW_ALL_PAGE_SIZE)
else 
if ($matchcount > 0 &&$perpage< $matchcount)

Enumeration Type Documentation

Definition at line 11 of file index.php.

enum MODE_BRIEF

Definition at line 13 of file index.php.

Definition at line 14 of file index.php.

Definition at line 12 of file index.php.

Definition at line 10 of file index.php.

Definition at line 9 of file index.php.


Function Documentation

if ($userlist) get_course_lastaccess_sql ( accesssince = '')

Definition at line 839 of file index.php.

get_user_lastaccess_sql ( accesssince = '')

Definition at line 850 of file index.php.


Variable Documentation

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

Definition at line 19 of file index.php.

$allrolenames = array()

Definition at line 69 of file index.php.

$allroles = get_all_roles()

Definition at line 67 of file index.php.

if ($isseparategroups and(!$currentgroup)) $baseurl
Initial value:
 new moodle_url('/user/index.php', array(
            'contextid' => $context->id,
            'roleid' => $roleid,
            'id' => $course->id,
            'perpage' => $perpage,
            'accesssince' => $accesssince,
            'search' => s($search)))

Definition at line 158 of file index.php.

$bulkoperations = has_capability('moodle/course:bulkmessaging', $context)

Definition at line 100 of file index.php.

Definition at line 23 of file index.php.

Definition at line 374 of file index.php.

Definition at line 102 of file index.php.

Definition at line 24 of file index.php.

$currentgroup = groups_get_course_group($course, true)

Definition at line 131 of file index.php.

$datestring = new stdClass()

Definition at line 106 of file index.php.

$extrafields = get_extra_user_fields($context)

Definition at line 317 of file index.php.

$extrasql
Initial value:
 get_extra_user_fields_sql($context, 'u', '', array(
            'id', 'username', 'firstname', 'lastname', 'email', 'city', 'country',
            'picture', 'lang', 'timezone', 'maildisplay', 'imagealt', 'lastaccess'))

Definition at line 380 of file index.php.

if (!isset($hiddenfields['lastaccess'])) $formatmenu
Initial value:
 array( '0' => get_string('brief'),
                         '1' => get_string('userdetails'))

Definition at line 273 of file index.php.

if ($twhere) $from = implode("\n", $joins)

Definition at line 419 of file index.php.

Definition at line 55 of file index.php.

$isfrontpage = ($course->id == SITEID)

Definition at line 53 of file index.php.

if (!$currentgroup) $isseparategroups = ($course->groupmode == SEPARATEGROUPS and !has_capability('moodle/site:accessallgroups', $context))

Definition at line 137 of file index.php.

$joins = array("FROM {user} u")

Definition at line 377 of file index.php.

$joins[] = $ccjoin

Definition at line 410 of file index.php.

Definition at line 18 of file index.php.

Definition at line 16 of file index.php.

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

Definition at line 17 of file index.php.

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

Definition at line 21 of file index.php.

Definition at line 68 of file index.php.

Definition at line 20 of file index.php.

$select = new single_select($baseurl, 'mode', $formatmenu, $mode, null, 'formatmenu')

Definition at line 275 of file index.php.

$strnever = get_string('never')

Definition at line 104 of file index.php.

Definition at line 52 of file index.php.

if ($mode===MODE_BRIEF) if ($mode===MODE_BRIEF &&!isset($hiddenfields['city'])) if ($mode===MODE_BRIEF &&!isset($hiddenfields['country'])) if (!isset($hiddenfields['lastaccess'])) if ($bulkoperations) $table = new flexible_table('user-index-participants-'.$course->id)

Definition at line 343 of file index.php.

if ($currentgroup and(!$isseparategroups or has_capability('moodle/site:accessallgroups', $context))) $tablecolumns = array('userpic', 'fullname')

Define a table showing a list of users in the current role selection.

Display info about the group

Definition at line 316 of file index.php.

$tableheaders = array(get_string('userpic'), get_string('fullnameuser'))

Definition at line 318 of file index.php.

$userlist = $DB->get_recordset_sql("$select $from $where $sort", $params, $table->get_page_start(), $table->get_page_size())

Definition at line 463 of file index.php.

$userlistcell = new html_table_cell()

Definition at line 277 of file index.php.

$wheres = array()

Definition at line 378 of file index.php.

$userlistcell attributes['class'] = 'controls'

setting up tags

Definition at line 193 of file index.php.

Print my course menus.

Definition at line 214 of file index.php.

$controlstable cellspacing = 0

Definition at line 194 of file index.php.

$controlstable data[] = new html_table_row()

Definition at line 195 of file index.php.

$datestring day = get_string('day')

Definition at line 109 of file index.php.

$datestring days = get_string('days')

Definition at line 110 of file index.php.

$datestring hour = get_string('hour')

Definition at line 111 of file index.php.

$datestring hours = get_string('hours')

Definition at line 112 of file index.php.

if ($perpage==SHOW_ALL_PAGE_SIZE) else if($matchcount > 0 &&$perpage< $matchcount)

Definition at line 825 of file index.php.

$datestring min = get_string('min')

Definition at line 113 of file index.php.

$datestring mins = get_string('mins')

Definition at line 114 of file index.php.

$datestring sec = get_string('sec')

Definition at line 115 of file index.php.

$datestring secs = get_string('secs')

Definition at line 116 of file index.php.

$userlistcell text = $OUTPUT->render($select)

Definition at line 279 of file index.php.

$datestring year = get_string('year')

Definition at line 107 of file index.php.

$datestring years = get_string('years')

Definition at line 108 of file index.php.

 All Data Structures Namespaces Files Functions Variables Enumerations