\LiveChat_Controller
handles polling, deleting, creation, fetching of live chat messages
Synopsis
class LiveChat_Controller
extends Controller
{
- // members
- private static array $url_handlers = ;
- private static array $allowed_actions = ;
- // methods
- public void member_search()
- public void get_poll()
- public void get_openchats()
- public void set_message()
- public void get_messages()
- public void delete_message()
- public void redirectChatToUser()
- public void canView()
- public void canEdit()
- public void canDelete()
Hierarchy
Extends
- Controller
Members
private
- $allowed_actions
- $url_handlers
Methods
public
- canDelete()
- canEdit()
- canView()
- delete_message() — deletes all your messages, given an ID or a FromName
- get_messages() — returns all messages from and to yourself and another user
- get_openchats() — Polls the message queue. Will return a map of senders with the lastest message ID
- get_poll() — Polls the message queue. Will return a map of senders with the lastest message ID
- member_search() — Use to find a user. returns AJAX
- redirectChatToUser() — Changes all messages from a user, to a nother user.
- set_message() — sends a message to user