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

Go to the source code of this file.

Enumerations

enum  NO_MOODLE_COOKIES

Variables

 $chat_sid = required_param('chat_sid', PARAM_ALPHANUM)
 $chat_lasttime = optional_param('chat_lasttime', 0, PARAM_INT)
 $chat_lastrow = optional_param('chat_lastrow', 1, PARAM_INT)
 $url = new moodle_url('/mod/chat/gui_header_js/jsupdate.php', array('chat_sid'=>$chat_sid))
if(!$chatuser=$DB->get_record('chat_users',
array('sid'=> $chat_sid))) if(!$course=$DB->
get_record('course', array('id'=>
$chatuser->course))) if(!$USER=$DB->
get_record('user', array('id'=>
$chatuser->userid))) $USER 
description = ''
 $params = array('groupid'=>$chatuser->groupid, 'chatid'=>$chatuser->chatid, 'lasttime'=>$chat_lasttime)
 $groupselect = ""
 $messages
 $refreshurl = "{$CFG->wwwroot}/mod/chat/gui_header_js/jsupdate.php?chat_sid=$chat_sid&chat_lasttime=$chat_newlasttime&chat_lastrow=$chat_newrow"
 $refreshurlamp = "{$CFG->wwwroot}/mod/chat/gui_header_js/jsupdate.php?chat_sid=$chat_sid&chat_lasttime=$chat_newlasttime&chat_lastrow=$chat_newrow"
 $stylesheetshtml = ''
 required stylesheets
 $beep = false
 $refreshusers = false
 $us = array ()
if(($chat_lasttime!=$chat_newlasttime)
and $messages) $chatuser 
lastping = time()
 exit

Enumeration Type Documentation

Definition at line 3 of file jsupdate.php.


Variable Documentation

$beep = false

Definition at line 122 of file jsupdate.php.

$chat_lastrow = optional_param('chat_lastrow', 1, PARAM_INT)

Definition at line 10 of file jsupdate.php.

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

Definition at line 9 of file jsupdate.php.

$chat_sid = required_param('chat_sid', PARAM_ALPHANUM)

Definition at line 8 of file jsupdate.php.

$groupselect = ""

Definition at line 60 of file jsupdate.php.

$messages
Initial value:
 $DB->get_records_select("chat_messages_current",
                    "chatid = :chatid AND timestamp > :lasttime $groupselect", $params,
                    "timestamp ASC")

Definition at line 62 of file jsupdate.php.

$params = array('groupid'=>$chatuser->groupid, 'chatid'=>$chatuser->chatid, 'lasttime'=>$chat_lasttime)

Definition at line 58 of file jsupdate.php.

$refreshurl = "{$CFG->wwwroot}/mod/chat/gui_header_js/jsupdate.php?chat_sid=$chat_sid&chat_lasttime=$chat_newlasttime&chat_lastrow=$chat_newrow"

Definition at line 75 of file jsupdate.php.

$refreshurlamp = "{$CFG->wwwroot}/mod/chat/gui_header_js/jsupdate.php?chat_sid=$chat_sid&chat_lasttime=$chat_newlasttime&chat_lastrow=$chat_newrow"

Definition at line 76 of file jsupdate.php.

$refreshusers = false

Definition at line 123 of file jsupdate.php.

$stylesheetshtml = ''

required stylesheets

Definition at line 86 of file jsupdate.php.

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

Definition at line 12 of file jsupdate.php.

$us = array ()

Definition at line 124 of file jsupdate.php.

if (!$chatuser=$DB->get_record('chat_users', array('sid'=> $chat_sid))) if (!$course=$DB->get_record('course', array('id'=> $chatuser->course))) if (!$USER=$DB->get_record('user', array('id'=> $chatuser->userid))) $USER description = ''

Definition at line 35 of file jsupdate.php.

Definition at line 187 of file jsupdate.php.

if (($chat_lasttime!=$chat_newlasttime) and $messages) $chatuser lastping = time()

Definition at line 142 of file jsupdate.php.

 All Data Structures Namespaces Files Functions Variables Enumerations