|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilChatroomViewGUI. More...
Inheritance 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 ($requestedMethod) | |
| 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) | |
| 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... | |
| sendResponse ($response) | |
| Sends a json encoded response and exits the php process. More... | |
| hasPermission ($permission) | |
| Checks for access with ilRbacSystem. 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 | |
| $obj_service | |
| $upload | |
| $rbacsystem | |
| $mainTpl | |
| $ilias | |
| $navigationHistory | |
| $tree | |
| $tabs | |
|
private |
Calls ilUtil::sendFailure method using given $message as parameter.
| string | $message |
Definition at line 243 of file class.ilChatroomViewGUI.php.
References $message, and ilUtil\sendFailure().
Here is the call graph for this function:| ilChatroomViewGUI::executeDefault | ( | $requestedMethod | ) |
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. @inheritDoc
Reimplemented from ilChatroomGUIHandler.
Definition at line 370 of file class.ilChatroomViewGUI.php.
References ilChatroom\byObjectId(), exit, and ilCtrl\redirect().
Here is the call graph for this function:| ilChatroomViewGUI::invitePD | ( | ) |
Definition at line 410 of file class.ilChatroomViewGUI.php.
References $_SESSION, ilChatroom\byObjectId(), ilCtrl\redirect(), and ilCtrl\setParameter().
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(), ilChatroomGUIHandler\redirectIfNoPermission(), and setupTemplate().
Here is the call graph for this function:| ilChatroomViewGUI::logout | ( | ) |
Performs logout.
Definition at line 441 of file class.ilChatroomViewGUI.php.
References ilCtrl\redirectByClass(), and ilCtrl\setParameterByClass().
Here is the call graph for this function:| ilChatroomViewGUI::lostConnection | ( | ) |
Definition at line 454 of file class.ilChatroomViewGUI.php.
References $_GET, ilCtrl\redirectByClass(), and ilUtil\sendFailure().
Here is the call graph for this function:| ilChatroomViewGUI::renderFileUploadForm | ( | ilTemplate | $roomTpl | ) |
Prepares Fileupload form and displays it.
| ilTemplate | $roomTpl |
Definition at line 252 of file class.ilChatroomViewGUI.php.
References HTML_Template_IT\setVariable().
Here is the call graph for this function:
|
protected |
| ilTemplate | $roomTpl |
Definition at line 279 of file class.ilChatroomViewGUI.php.
References HTML_Template_IT\setVariable().
Here is the call graph for this function:
|
protected |
| ilTemplate | $roomTpl |
Definition at line 335 of file class.ilChatroomViewGUI.php.
References HTML_Template_IT\setVariable().
Here is the call graph for this function:
|
protected |
| ilTemplate | $roomTpl |
Definition at line 267 of file class.ilChatroomViewGUI.php.
References HTML_Template_IT\setVariable().
Here is the call graph for this function:
|
private |
Adds CSS and JavaScript files that should be included in the header.
Definition at line 55 of file class.ilChatroomViewGUI.php.
Referenced by joinWithCustomName().
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 346 of file class.ilChatroomViewGUI.php.
References ilChatroomUser\getChatNameSuggestions(), ilCtrl\getFormAction(), and ilCtrl\saveParameter().
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 73 of file class.ilChatroomViewGUI.php.
References $_GET, $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: