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

Go to the source code of this file.

Namespaces

namespace  user

Functions

 print_row ($left, $right)
 Functions ///////.

Variables

 $id = optional_param('id', 0, PARAM_INT)
 $courseid = optional_param('course', SITEID, PARAM_INT)
 $user = $DB->get_record('user', array('id'=>$id), '*', MUST_EXIST)
 $course = $DB->get_record('course', array('id'=>$courseid), '*', MUST_EXIST)
 $currentuser = ($user->id == $USER->id)
 $systemcontext = get_context_instance(CONTEXT_SYSTEM)
 $coursecontext = get_context_instance(CONTEXT_COURSE, $course->id)
 $usercontext = get_context_instance(CONTEXT_USER, $user->id, IGNORE_MISSING)
 $isparent = false
 $strparticipants = get_string("participants")
 $struser = get_string("user")
 $fullname = fullname($user, has_capability('moodle/site:viewfullnames', $coursecontext))
 if ($user->description &&!isset($hiddenfields['description']))
 Get the hidden field list.
if($currentuser or $user->
maildisplay==1or($user->maildisplay==2 &&is_enrolled($coursecontext, $USER)) or has_capability('moodle/course:useremail', $coursecontext)) if(!isset($hiddenfields['lastaccess'])) if($rolestring=get_user_roles_in_course($id, $course->id)) if(!isset($hiddenfields['groups'])) if(!isset($hiddenfields['mycourses'])) 
if (!isset($hiddenfields['suspended']))

Function Documentation

print_row ( left,
right 
)

Functions ///////.

Definition at line 356 of file view.php.


Variable Documentation

Definition at line 46 of file view.php.

Definition at line 50 of file view.php.

Definition at line 32 of file view.php.

$currentuser = ($user->id == $USER->id)

Definition at line 47 of file view.php.

$fullname = fullname($user, has_capability('moodle/site:viewfullnames', $coursecontext))

Definition at line 90 of file view.php.

Definition at line 31 of file view.php.

$isparent = false

Definition at line 69 of file view.php.

$strparticipants = get_string("participants")

Definition at line 87 of file view.php.

$struser = get_string("user")

Definition at line 88 of file view.php.

Definition at line 49 of file view.php.

$user = $DB->get_record('user', array('id'=>$id), '*', MUST_EXIST)

Definition at line 45 of file view.php.

Definition at line 51 of file view.php.

if (isloggedin()&&has_capability('moodle/site:sendmessage', $usercontext)&&!empty($CFG->messaging)&&!isguestuser()&&!isguestuser($user)&&($USER->id!=$user->id)) if($currentuser||has_capability('moodle/user:viewdetails', $usercontext)||has_coursecontact_role($id))

Get the hidden field list.

TODO Add more useful overview info for teachers here, see below.

Show links to notes made about this student (must click to display, for privacy) Recent comments made in this course Recent blogs associated with this course and items in it

Definition at line 215 of file view.php.

if ($currentuser or $user->maildisplay==1or($user->maildisplay==2 &&is_enrolled($coursecontext, $USER))or has_capability('moodle/course:useremail', $coursecontext)) if (!isset($hiddenfields['lastaccess'])) if ($rolestring=get_user_roles_in_course($id, $course->id)) if (!isset($hiddenfields['groups'])) if (!isset($hiddenfields['mycourses'])) if(!isset($hiddenfields['suspended']))

Definition at line 318 of file view.php.

 All Data Structures Namespaces Files Functions Variables Enumerations