4 require_once
'Modules/Chatroom/classes/class.ilChatroom.php';
31 case 'disconnectedUsers':
32 if (isset($_REQUEST[
'scope'])) {
51 require_once
'Modules/Chatroom/classes/class.ilChatroom.php';
53 foreach ($usersByScope as $scope =>
$users) {
61 'type' =>
'disconnected',
62 'users' => $userDetails,
63 'timestamp' =>
date(
'c')
66 $chatroom->disconnectUsers(
$users);
68 if (!isset($_REQUEST[
'handledAction']) || $_REQUEST[
'handledAction'] !=
'kick') {
72 if (
true || $chatroom->getSetting(
'enable_history')) {
73 $messageObject =
array(
74 'type' =>
'disconnected',
75 'users' => $userDetails,
76 'timestamp' =>
date(
'c')
79 $chatroom->addHistoryEntry($messageObject);
89 $rset = $DIC->database()->query(
'SELECT userdata FROM chatroom_users WHERE ' . $DIC->database()->in(
'user_id', $user_ids,
false,
'integer'));
91 while (
$row = $DIC->database()->fetchAssoc($rset)) {
105 require_once
'Modules/Chatroom/classes/class.ilChatroomServerConnector.php';
106 require_once
'Modules/Chatroom/classes/class.ilChatroomAdmin.php';
120 foreach ($deletableRooms as $deletableRoom) {
124 $room->closePrivateRoom($deletableRoom[
'proom_id']);
128 'type' =>
'private_room_deleted',
129 'timestamp' =>
date(
'c'),
131 'id' => $deletableRoom[
'proom_id'],
132 'proom_id' => $deletableRoom[
'proom_id'],
134 'message' =>
'room deleted',
150 require_once
'Modules/Chatroom/classes/class.ilChatroom.php';
handleCommand($task)
Calls command depending on given $task.
Class ilChatroomServerHandler.
static getDefaultConfiguration()
Instantiates and returns ilChatroomAdmin object using instance_id and settings from settingsTable...
getConnector()
Returns connector Instantiates ilChatroomServerConnector with server settings and returns it...
static byRoomId($room_id, $initObject=false)
Returns ilChatroom by given $room_id.
serverStarted()
Requires ilChatroom and calls its disconnectAllUsersFromAllRooms() method.
getUserInformation($user_ids)
catch(Exception $e) $message
Class ilChatroomServerConnector.
static findDeletablePrivateRooms()
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
__construct()
Constructor Calls $this->handleCommand method.
static disconnectAllUsersFromAllRooms()
Deletes all entrys from userTable.
Create styles array
The data for the language used.
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.
static byObjectId($object_id)
Returns ilChatroom object by given $object_id.