Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/chat/gui_basic/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)
 $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

$allmessages = array()

Definition at line 160 of file index.php.

if (!isset($SESSION->chatprefs)) if (!isset($SESSION->chatprefs[$chat->id])) $chatentered = $SESSION->chatprefs[$chat->id]['chatentered']

Definition at line 83 of file index.php.

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 43 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.

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

Definition at line 10 of file index.php.

$message = optional_param('message', '', PARAM_CLEANHTML)

Definition at line 8 of file index.php.

$messages
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.

$newonly = optional_param('newonly', 0, PARAM_BOOL)

Definition at line 11 of file index.php.

$options = new stdClass()

Definition at line 161 of file index.php.

$params = array('last'=>$last, 'groupid'=>$groupid, 'chatid'=>$chat->id, 'chatentered'=>$chatentered)

Definition at line 165 of file index.php.

$refresh = optional_param('refresh', '', PARAM_RAW)

Definition at line 9 of file index.php.

$refreshedmessage = ''

Definition at line 85 of file index.php.

$strchats = get_string('modulenameplural', 'chat')

Check to see if groups are being used here.

Definition at line 64 of file index.php.

$stridle = get_String('idle', 'chat')

Definition at line 65 of file index.php.

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

Definition at line 13 of file index.php.

foreach($chatusers as $chu)

Definition at line 124 of file index.php.

$options newlines = true

Definition at line 163 of file index.php.

$options para = false

Definition at line 162 of file index.php.

 All Data Structures Namespaces Files Functions Variables Enumerations