Go to the source code of this file.
Variables |
| | $id = required_param('id', PARAM_INT) |
| | $groupid = optional_param('groupid', 0, PARAM_INT) |
| | $message = optional_param('message', '', PARAM_CLEANHTML) |
| | $refresh = optional_param('refresh', '', PARAM_RAW) |
| | $last = optional_param('last', 0, PARAM_INT) |
| | $newonly = optional_param('newonly', 0, PARAM_BOOL) |
| | $url = new moodle_url('/mod/chat/gui_basic/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) |
| | $strchats = get_string('modulenameplural', 'chat') |
| | Check to see if groups are being used here.
|
| | $stridle = get_String('idle', 'chat') |
if(!isset($SESSION->chatprefs))
if(!isset($SESSION->chatprefs[$chat->
id])) | $chatentered = $SESSION->chatprefs[$chat->id]['chatentered'] |
| | $refreshedmessage = '' |
| | foreach ($chatusers as $chu) |
| | $allmessages = array() |
| | $options = new stdClass() |
| $options | para = false |
| $options | newlines = true |
| | $params = array('last'=>$last, 'groupid'=>$groupid, 'chatid'=>$chat->id, 'chatentered'=>$chatentered) |
| | $messages |
Variable Documentation
| if (!isset($SESSION->chatprefs)) if (!isset($SESSION->chatprefs[$chat->id])) $chatentered = $SESSION->chatprefs[$chat->id]['chatentered'] |
Initial value: $DB->get_records_select("chat_messages_current",
"chatid = :chatid AND timestamp > :chatentered $lastsql $groupselect", $params,
"timestamp DESC")
Definition at line 175 of file index.php.
| $options = new stdClass() |
| $params = array('last'=>$last, 'groupid'=>$groupid, 'chatid'=>$chat->id, 'chatentered'=>$chatentered) |
Check to see if groups are being used here.
Definition at line 64 of file index.php.
| $stridle = get_String('idle', 'chat') |