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

Variable Documentation

$chat = $DB->get_record('chat', array('id'=>$id), '*', MUST_EXIST)

Definition at line 15 of file index.php.

$cm = get_coursemodule_from_instance('chat', $chat->id, $course->id, false, MUST_EXIST)

Definition at line 17 of file index.php.

Definition at line 19 of file index.php.

$course = $DB->get_record('course', array('id'=>$chat->course), '*', MUST_EXIST)

Definition at line 16 of file index.php.

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

Definition at line 6 of file index.php.

Definition at line 5 of file index.php.

$module
Initial value:
 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.

Definition at line 48 of file index.php.

$modulecfg
Initial value:
 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
)

Definition at line 55 of file index.php.

$table = new html_table()

Definition at line 77 of file index.php.

$theme = optional_param('theme', 'compact', PARAM_SAFEDIR)

Definition at line 7 of file index.php.

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

Definition at line 9 of file index.php.

Initial value:
 array(
    array(' &raquo; <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').' &raquo; </a>')
)

Definition at line 78 of file index.php.

 All Data Structures Namespaces Files Functions Variables Enumerations