|
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) | |
| $theme = optional_param('theme', 'compact', PARAM_SAFEDIR) | |
| $url = new moodle_url('/mod/chat/gui_ajax/index.php', array('id'=>$id)) | |
| $chat = $DB->get_record('chat', array('id'=>$id), '*', MUST_EXIST) | |
| $course = $DB->get_record('course', array('id'=>$chat->course), '*', MUST_EXIST) | |
| $cm = get_coursemodule_from_instance('chat', $chat->id, $course->id, false, MUST_EXIST) | |
| $context = get_context_instance(CONTEXT_MODULE, $cm->id) | |
| $module | |
| Check to see if groups are being used here. | |
| $modulecfg | |
| $table = new html_table() | |
| $table | data |
| $chat = $DB->get_record('chat', array('id'=>$id), '*', MUST_EXIST) |
| $cm = get_coursemodule_from_instance('chat', $chat->id, $course->id, false, MUST_EXIST) |
| $course = $DB->get_record('course', array('id'=>$chat->course), '*', MUST_EXIST) |
| $groupid = optional_param('groupid', 0, PARAM_INT) |
| $module |
array( 'name' => 'mod_chat_ajax', 'fullpath' => '/mod/chat/gui_ajax/module.js', 'requires' => array('base', 'dom', 'event', 'event-mouseenter', 'event-key', 'json-parse', 'io', 'overlay', 'yui2-resize', 'yui2-layout', 'yui2-menu'), 'strings' => array(array('send', 'chat'), array('sending', 'chat'), array('inputarea', 'chat'), array('userlist', 'chat'), array('modulename', 'chat'), array('beep', 'chat'), array('talk', 'chat')) )
Check to see if groups are being used here.
| $modulecfg |
array( 'home'=>$CFG->httpswwwroot.'/mod/chat/view.php?id='.$cm->id, 'chaturl'=>$CFG->httpswwwroot.'/mod/chat/gui_ajax/index.php?id='.$id, 'theme'=>$theme, 'userid'=>$USER->id, 'sid'=>$chat_sid, 'timer'=>3000, 'chat_lasttime'=>0, 'chat_lastrow'=>null, 'chatroom_name' => $courseshortname . ": " . format_string($chat->name, true) . $groupname )
| $table = new html_table() |
| $theme = optional_param('theme', 'compact', PARAM_SAFEDIR) |
| $url = new moodle_url('/mod/chat/gui_ajax/index.php', array('id'=>$id)) |
array( array(' » <input type="text" disabled="true" id="input-message" value="Loading..." size="50" /> <input type="button" id="button-send" value="'.get_string('send', 'chat').'" /> <a id="choosetheme" href="###">'.get_string('themes').' » </a>') )