Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.
/mod/chat/ -> chatd.php (source)

Differences Between: [Versions 401 and 402] [Versions 401 and 403]

Chat daemon

Copyright: 1999 onwards Martin Dougiamas {@link http://moodle.com}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 1054 lines (41 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

ChatConnection:: (1 method):
  __construct()

ChatDaemon:: (24 methods):
  __construct()
  error_handler()
  poll_idle_chats()
  query_start()
  trace()
  write_data()
  user_lazy_update()
  get_user_window()
  openpopup()
  new_ufo_id()
  process_sidekicks()
  dispatch_sidekick()
  promote_final()
  promote_ufo()
  dismiss_half()
  dismiss_set()
  dismiss_ufo()
  conn_accept()
  conn_activity_ufo()
  message_broadcast()
  disconnect_session()
  fatal()
  init_sockets()
  cli_switch()

Defines 24 functions


Class: ChatConnection  - X-Ref

__construct($resource)   X-Ref
No description

Class: ChatDaemon  - X-Ref

__construct()   X-Ref
No description

error_handler($errno, $errmsg, $filename, $linenum, $vars)   X-Ref
No description

poll_idle_chats($now)   X-Ref
No description

query_start()   X-Ref
No description

trace($message, $level = E_USER_NOTICE)   X-Ref
No description

write_data($connection, $text)   X-Ref
No description

user_lazy_update($sessionid)   X-Ref
No description

get_user_window($sessionid)   X-Ref
No description

openpopup(url,name,options,fullscreen)   X-Ref
No description

new_ufo_id()   X-Ref
No description

process_sidekicks($sessionid)   X-Ref
No description

dispatch_sidekick($handle, $type, $sessionid, $customdata)   X-Ref
No description

promote_final($sessionid, $customdata)   X-Ref
No description

promote_ufo($handle, $type, $sessionid, $customdata)   X-Ref
No description

dismiss_half($sessionid, $disconnect = true)   X-Ref
No description

dismiss_set($sessionid)   X-Ref
No description

dismiss_ufo($handle, $disconnect = true, $message = null)   X-Ref
No description

conn_accept()   X-Ref
No description

conn_activity_ufo(&$handles)   X-Ref
No description

message_broadcast($message, $sender)   X-Ref
No description

disconnect_session($sessionid)   X-Ref
No description

fatal($message)   X-Ref
No description

init_sockets()   X-Ref
No description

cli_switch($switch, $param = null)   X-Ref
No description

Functions that are not part of a class:

chat_empty_connection()   X-Ref
No description