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

Go to the source code of this file.

Variables

 $id = required_param('id', PARAM_INT)
 $groupid = optional_param('groupid', 0, PARAM_INT)
 $url = new moodle_url('/mod/chat/gui_header_js/index.php', array('id'=>$id))
if(!$chat=$DB->get_record('chat',
array('id'=> $id))) if(!$course=$DB->
get_record('course', array('id'=>
$chat->course))) if(!$cm=get_coursemodule_from_instance('chat',
$chat->id, $course->id)) 
$context = get_context_instance(CONTEXT_MODULE, $cm->id)
if(!$chat_sid=chat_login_user($chat->
id, 'header_js', $groupid,
$course)) 
$params = "chat_id=$id&chat_sid={$chat_sid}"
 Check to see if groups are being used here.
 $updatemode = 'jsupdate'
if(!empty($CFG->
chat_normal_updatemode)) 
$courseshortname = format_string($course->shortname, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id)))

Variable Documentation

if (!$chat=$DB->get_record('chat', array('id'=> $id))) if (!$course=$DB->get_record('course', array('id'=> $chat->course))) if (!$cm=get_coursemodule_from_instance('chat', $chat->id, $course->id)) $context = get_context_instance(CONTEXT_MODULE, $cm->id)

Definition at line 27 of file index.php.

if (!empty($CFG->chat_normal_updatemode)) $courseshortname = format_string($course->shortname, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id)))

Definition at line 62 of file index.php.

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

Definition at line 7 of file index.php.

Definition at line 6 of file index.php.

if (!$chat_sid=chat_login_user($chat->id, 'header_js', $groupid, $course)) $params = "chat_id=$id&chat_sid={$chat_sid}"

Check to see if groups are being used here.

Definition at line 54 of file index.php.

$updatemode = 'jsupdate'

Definition at line 57 of file index.php.

$url = new moodle_url('/mod/chat/gui_header_js/index.php', array('id'=>$id))

Definition at line 9 of file index.php.

 All Data Structures Namespaces Files Functions Variables Enumerations