ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilChatroomViewGUI. More...
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().
Referenced by executeDefault(), and showRoom().
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 |
Definition at line 366 of file class.ilChatroomViewGUI.php.
References ilChatroom\byObjectId(), cancelJoin(), exit, ilCtrl\redirect(), ilChatroomGUIHandler\redirectIfNoPermission(), setupTemplate(), showNameSelection(), and showRoom().
ilChatroomViewGUI::invitePD | ( | ) |
Definition at line 406 of file class.ilChatroomViewGUI.php.
References $_SESSION, $title, ilChatroom\byObjectId(), ilCtrl\redirect(), and ilCtrl\setParameter().
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(), ilUtil\sendFailure(), setupTemplate(), showNameSelection(), and showRoom().
ilChatroomViewGUI::logout | ( | ) |
Performs logout.
Definition at line 437 of file class.ilChatroomViewGUI.php.
References ilCtrl\redirectByClass(), and ilCtrl\setParameterByClass().
ilChatroomViewGUI::lostConnection | ( | ) |
Definition at line 450 of file class.ilChatroomViewGUI.php.
References $_GET, $DIC, $response, ilChatroom\byObjectId(), exit, ilUserUtil\getNamePresentation(), ilChatroomUser\getUserInformation(), ilCtrl\redirectByClass(), ilUtil\sendFailure(), ilWACSignedPath\setTokenMaxLifetimeInSeconds(), and ilStr\subStr().
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().
Referenced by showRoom().
|
protected |
ilTemplate | $roomTpl |
Definition at line 275 of file class.ilChatroomViewGUI.php.
References HTML_Template_IT\setVariable().
Referenced by showRoom().
|
protected |
ilTemplate | $roomTpl |
Definition at line 331 of file class.ilChatroomViewGUI.php.
References HTML_Template_IT\setVariable().
Referenced by showRoom().
|
protected |
ilTemplate | $roomTpl |
Definition at line 263 of file class.ilChatroomViewGUI.php.
References HTML_Template_IT\setVariable().
Referenced by showRoom().
|
private |
Adds CSS and JavaScript files that should be included in the header.
Definition at line 53 of file class.ilChatroomViewGUI.php.
Referenced by executeDefault(), and joinWithCustomName().
|
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().
Referenced by executeDefault(), and joinWithCustomName().
|
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, cancelJoin(), ilChatroom\checkUserPermissions(), ilChatroom\connectUser(), ilChatroom\getActivePrivateRooms(), ilChatroom\getConnectedUsers(), ilUtil\getImagePath(), ilPanelGUI\getInstance(), ilChatroom\getLastMessages(), ilCtrl\getLinkTarget(), ilCtrl\getLinkTargetByClass(), ilChatroom\getRoomId(), ilChatroom\getSetting(), ilChatroomUser\getUserId(), ilChatroomUser\getUsername(), ilPanelGUI\HEADING_STYLE_BLOCK, ilModalGUI\initJS(), ilChatroom\isAllowedToEnterPrivateRoom(), ilChatroom\isSubscribed(), ilChatroomGUIHandler\isSuccessful(), ilChatroom\isUserBanned(), ilPanelGUI\PANEL_STYLE_SECONDARY, ilCtrl\redirectByClass(), ilChatroomGUIHandler\redirectIfNoPermission(), renderFileUploadForm(), renderLanguageVariables(), renderRightUsersBlock(), renderSendMessageBox(), ilUtil\sendFailure(), and ilChatroom\subscribeUserToPrivateRoom().
Referenced by executeDefault(), and joinWithCustomName().