ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilChatroomServerHandler. More...
Public Member Functions | |
__construct () | |
Constructor Calls $this->handleCommand method. More... | |
getConnector () | |
Returns connector Instantiates ilChatroomServerConnector with server settings and returns it. More... | |
cleanupPrivateRooms () | |
Private Member Functions | |
handleCommand ($task) | |
Calls command depending on given $task. More... | |
disconnectedUsers ($usersByScope) | |
Calls $chatroom->disconnectUsers for every given user in every given scope ($usersByScope), sends corresponding status messages to chatroom and adds event in history. More... | |
serverStarted () | |
Requires ilChatroom and calls its disconnectAllUsersFromAllRooms() method. More... | |
Class ilChatroomServerHandler.
Definition at line 12 of file class.ilChatroomServerHandler.php.
ilChatroomServerHandler::__construct | ( | ) |
Constructor Calls $this->handleCommand method.
Definition at line 18 of file class.ilChatroomServerHandler.php.
References exit, and handleCommand().
ilChatroomServerHandler::cleanupPrivateRooms | ( | ) |
Definition at line 102 of file class.ilChatroomServerHandler.php.
References $message, PHPMailer\PHPMailer\$params, $query, $result, ilChatroom\byObjectId(), ilChatroom\findDeletablePrivateRooms(), and getConnector().
Referenced by handleCommand().
|
private |
Calls $chatroom->disconnectUsers for every given user in every given scope ($usersByScope), sends corresponding status messages to chatroom and adds event in history.
array | $usersByScope |
Definition at line 49 of file class.ilChatroomServerHandler.php.
References $message, $users, ilChatroom\byRoomId(), getConnector(), and ilChatroomUser\getUserInformation().
Referenced by handleCommand().
ilChatroomServerHandler::getConnector | ( | ) |
Returns connector Instantiates ilChatroomServerConnector with server settings and returns it.
Definition at line 91 of file class.ilChatroomServerHandler.php.
References ilChatroomAdmin\getDefaultConfiguration().
Referenced by cleanupPrivateRooms(), and disconnectedUsers().
|
private |
Calls command depending on given $task.
string | $task |
Definition at line 28 of file class.ilChatroomServerHandler.php.
References cleanupPrivateRooms(), disconnectedUsers(), and serverStarted().
Referenced by __construct().
|
private |
Requires ilChatroom and calls its disconnectAllUsersFromAllRooms() method.
Definition at line 136 of file class.ilChatroomServerHandler.php.
References ilChatroom\disconnectAllUsersFromAllRooms().
Referenced by handleCommand().