| ILIAS
    release_5-4 Revision v5.4.26-12-gabc799a52e6
    | 
Class ilChatroomViewGUI. More...
 Inheritance diagram for ilChatroomViewGUI:
 Inheritance diagram for ilChatroomViewGUI: Collaboration diagram for ilChatroomViewGUI:
 Collaboration diagram for ilChatroomViewGUI:| Public Member Functions | |
| joinWithCustomName () | |
| Joins user to chatroom with custom username, fetched from $_REQUEST['custom_username_text'] or by calling buld method.  More... | |
| renderFileUploadForm (ilTemplate $roomTpl) | |
| Prepares Fileupload form and displays it.  More... | |
| executeDefault ($method) | |
| Chatroom and Chatuser get prepared before $this->showRoom method is called.  More... | |
| invitePD () | |
| logout () | |
| Performs logout.  More... | |
| lostConnection () | |
|  Public Member Functions inherited from ilChatroomGUIHandler | |
| __construct (ilChatroomObjectGUI $gui) | |
| sendResponse ($response) | |
| Sends a json encoded response and exits the php process.  More... | |
| hasPermission ($permission) | |
| Checks for access with ilRbacSystem.  More... | |
| execute ($method) | |
| Executes given $method if existing, otherwise executes executeDefault() method.  More... | |
| executeDefault ($requestedMethod) | |
| redirectIfNoPermission ($permission) | |
| Checks for requested permissions and redirects if the permission check failed.  More... | |
| isSuccessful ($response) | |
| Checks for success param in an json decoded response.  More... | |
| Protected Member Functions | |
| renderSendMessageBox (ilTemplate $roomTpl) | |
| renderLanguageVariables (ilTemplate $roomTpl) | |
| renderRightUsersBlock (ilTemplate $roomTpl) | |
|  Protected Member Functions inherited from ilChatroomGUIHandler | |
| getRoomByObjectId ($objectId) | |
| exitIfNoRoomExists ($room) | |
| Checks if a ilChatroom exists.  More... | |
| exitIfNoRoomPermission ($room, $subRoom, $chat_user) | |
| Check if user can moderate a chatroom.  More... | |
| canModerate ($room, $subRoom, $user_id) | |
| Checks if the user has permission to moderate a ilChatroom.  More... | |
| isMainRoom ($subRoomId) | |
| Private Member Functions | |
| setupTemplate () | |
| Adds CSS and JavaScript files that should be included in the header.  More... | |
| showRoom (ilChatroom $room, ilChatroomUser $chat_user) | |
| Prepares and displays chatroom and connects user to it.  More... | |
| cancelJoin ($message) | |
| Calls ilUtil::sendFailure method using given $message as parameter.  More... | |
| showNameSelection (ilChatroomUser $chat_user) | |
| Prepares and displays name selection.  More... | |
| Additional Inherited Members | |
|  Protected Attributes inherited from ilChatroomGUIHandler | |
| $gui | |
| $ilUser | |
| $ilCtrl | |
| $ilLng | |
| $webDirectory | |
| $upload | |
| $rbacsystem | |
| $mainTpl | |
| $ilias | |
| $navigationHistory | |
| $tree | |
| $tabs | |
| 
 | private | 
Calls ilUtil::sendFailure method using given $message as parameter.
| string | $message | 
Definition at line 239 of file class.ilChatroomViewGUI.php.
References $message, and ilUtil\sendFailure().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilChatroomViewGUI::executeDefault | ( | $method | ) | 
Chatroom and Chatuser get prepared before $this->showRoom method is called.
If custom usernames are allowed, $this->showNameSelection method is called if user isn't already registered in the Chatroom.
| string | $method | 
Reimplemented from ilChatroomGUIHandler.
Definition at line 366 of file class.ilChatroomViewGUI.php.
References ilChatroom\byObjectId(), exit, and ilCtrl\redirect().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilChatroomViewGUI::invitePD | ( | ) | 
Definition at line 406 of file class.ilChatroomViewGUI.php.
References $_SESSION, $title, ilChatroom\byObjectId(), ilCtrl\redirect(), and ilCtrl\setParameter().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilChatroomViewGUI::joinWithCustomName | ( | ) | 
Joins user to chatroom with custom username, fetched from $_REQUEST['custom_username_text'] or by calling buld method.
If sucessful, $this->showRoom method is called, otherwise $this->showNameSelection.
Definition at line 21 of file class.ilChatroomViewGUI.php.
References $failure, ilChatroom\byObjectId(), and setupTemplate().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilChatroomViewGUI::logout | ( | ) | 
Performs logout.
Definition at line 437 of file class.ilChatroomViewGUI.php.
References ilCtrl\redirectByClass(), and ilCtrl\setParameterByClass().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilChatroomViewGUI::lostConnection | ( | ) | 
Definition at line 450 of file class.ilChatroomViewGUI.php.
References $_GET, ilCtrl\redirectByClass(), and ilUtil\sendFailure().
 Here is the call graph for this function:
 Here is the call graph for this function:| ilChatroomViewGUI::renderFileUploadForm | ( | ilTemplate | $roomTpl | ) | 
Prepares Fileupload form and displays it.
| ilTemplate | $roomTpl | 
Definition at line 248 of file class.ilChatroomViewGUI.php.
References HTML_Template_IT\setVariable().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
| ilTemplate | $roomTpl | 
Definition at line 275 of file class.ilChatroomViewGUI.php.
References HTML_Template_IT\setVariable().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
| ilTemplate | $roomTpl | 
Definition at line 331 of file class.ilChatroomViewGUI.php.
References HTML_Template_IT\setVariable().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | protected | 
| ilTemplate | $roomTpl | 
Definition at line 263 of file class.ilChatroomViewGUI.php.
References HTML_Template_IT\setVariable().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
Adds CSS and JavaScript files that should be included in the header.
Definition at line 53 of file class.ilChatroomViewGUI.php.
Referenced by joinWithCustomName().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Prepares and displays name selection.
Fetches name option by calling getChatNameSuggestions method on given $chat_user object.
| ilChatroomUser | $chat_user | 
Definition at line 342 of file class.ilChatroomViewGUI.php.
References ilChatroomUser\getChatNameSuggestions(), ilCtrl\getFormAction(), and ilCtrl\saveParameter().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | private | 
Prepares and displays chatroom and connects user to it.
| ilChatroom | $room | |
| ilChatroomUser | $chat_user | 
Definition at line 69 of file class.ilChatroomViewGUI.php.
References $_GET, $key, PHPMailer\PHPMailer\$params, $response, ilChatroom\checkUserPermissions(), ilChatroom\connectUser(), ilChatroom\getActivePrivateRooms(), ilChatroom\getConnectedUsers(), ilUtil\getImagePath(), ilChatroom\getLastMessages(), ilCtrl\getLinkTarget(), ilCtrl\getLinkTargetByClass(), ilChatroom\getRoomId(), ilChatroom\getSetting(), ilChatroomUser\getUserId(), ilChatroomUser\getUsername(), ilChatroom\isAllowedToEnterPrivateRoom(), ilChatroom\isSubscribed(), ilChatroom\isUserBanned(), ilCtrl\redirectByClass(), ilUtil\sendFailure(), and ilChatroom\subscribeUserToPrivateRoom().
 Here is the call graph for this function:
 Here is the call graph for this function: