|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | mod |
Local Library of functions for module scorm. | |
Functions | |
| if($oldusers=$DB-> get_records_select('chat_users', $query, $params)) | chat_update_chat_times ($chatid=0) |
| chat_format_message_manually ($message, $courseid, $sender, $currentuser, $chat_lastrow=NULL) | |
| chat_format_message ($message, $courseid, $currentuser, $chat_lastrow=NULL) | |
| chat_format_message_theme ($message, $chatuser, $currentuser, $groupingid, $theme= 'bubble') | |
| chat_format_userlist ($users, $course) | |
| chat_print_error ($level, $msg) | |
| chat_get_view_actions () | |
| chat_get_post_actions () | |
| chat_print_overview ($courses, &$htmlarray) | |
| chat_reset_course_form_definition (&$mform) | |
| chat_reset_course_form_defaults ($course) | |
| chat_reset_userdata ($data) | |
| chat_get_extra_capabilities () | |
| chat_supports ($feature) | |
| chat_extend_navigation ($navigation, $course, $module, $cm) | |
| chat_extend_settings_navigation (settings_navigation $settings, navigation_node $chatnode) | |
| chat_user_logout ($user) | |
| chat_page_type_list ($pagetype, $parentcontext, $currentcontext) | |
Variables | |
| global | $CHAT_HTMLHEAD = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"http://www.w3.org/TR/REC-html40/loose.dtd\"><html><head></head>\n<body>\n\n".padding(200) |
| global | $CHAT_HTMLHEAD_JS |
| $params = array($timeold, $timeoldext) | |
| chat_extend_navigation | ( | $ | navigation, |
| $ | course, | ||
| $ | module, | ||
| $ | cm | ||
| ) |
| chat_extend_settings_navigation | ( | settings_navigation $ | settings, |
| navigation_node $ | chatnode | ||
| ) |
Adds module specific settings to the settings block
| settings_navigation | $settings | The settings navigation object |
| navigation_node | $chatnode | The node to add module settings to |
Definition at line 1296 of file lib.php.

| chat_format_message | ( | $ | message, |
| $ | courseid, | ||
| $ | currentuser, | ||
| $ | chat_lastrow = NULL |
||
| ) |
object
| object | $message | |
| int | $courseid | |
| object | $currentuser | |
| string | $chat_lastrow |
Given a message object full of information, this function formats it appropriately into text and html, then returns the formatted data.
Definition at line 881 of file lib.php.


| chat_format_message_manually | ( | $ | message, |
| $ | courseid, | ||
| $ | sender, | ||
| $ | currentuser, | ||
| $ | chat_lastrow = NULL |
||
| ) |
object object
| object | $message | |
| int | $courseid | |
| object | $sender | |
| object | $currentuser | |
| string | $chat_lastrow |
Parse the text to clean and filter it
It's a beep!
It's a user command
Format the message as a small table
Definition at line 752 of file lib.php.


| chat_format_message_theme | ( | $ | message, |
| $ | chatuser, | ||
| $ | currentuser, | ||
| $ | groupingid, | ||
| $ | theme = 'bubble' |
||
| ) |
object
| object | $message | message to be displayed. |
| mixed | $chatuser | user chat data |
| object | $currentuser | current user for whom the message should be displayed. |
| int | $groupingid | course module grouping id |
| string | $theme | name of the chat theme. |
Parse the text to clean and filter it
It's a beep!
It's a user command
Definition at line 908 of file lib.php.

| chat_format_userlist | ( | $ | users, |
| $ | course | ||
| ) |
| chat_page_type_list | ( | $ | pagetype, |
| $ | parentcontext, | ||
| $ | currentcontext | ||
| ) |
| chat_print_error | ( | $ | level, |
| $ | msg | ||
| ) |
| chat_print_overview | ( | $ | courses, |
| &$ | htmlarray | ||
| ) |
| chat_reset_course_form_defaults | ( | $ | course | ) |
| chat_reset_course_form_definition | ( | &$ | mform | ) |
| chat_reset_userdata | ( | $ | data | ) |
Actual implementation of the reset course functionality, delete all the chat messages for course $data->courseid.
object object
| object | $data | the data submitted from the reset course. |
updating dates - shift may be negative too
Definition at line 1190 of file lib.php.

| chat_supports | ( | $ | feature | ) |
| if ($oldusers=$DB->get_records_select('chat_users', $query, $params)) chat_update_chat_times | ( | $ | chatid = 0 | ) |
| chat_user_logout | ( | $ | user | ) |
| $CHAT_HTMLHEAD_JS |