|
Moodle
2.2.1
http://www.collinsharper.com
|
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))) |
| 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 (!empty($CFG->chat_normal_updatemode)) $courseshortname = format_string($course->shortname, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id))) |
| $groupid = optional_param('groupid', 0, PARAM_INT) |