ILIAS
release_8 Revision v8.19
|
Class ilChatroomViewGUI. More...
Public Member Functions | |
joinWithCustomName () | |
toggleAutoMessageDisplayState () | |
executeDefault (string $requestedMethod) | |
Chatroom and Chatuser get prepared before $this->showRoom method is called. More... | |
invitePD () | |
logout () | |
lostConnection () | |
![]() | |
execute (string $method) | |
executeDefault (string $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, bool $isJson=false) | |
Sends a json encoded response and exits the php process. More... | |
hasPermission (string $permission) | |
Protected Member Functions | |
renderSendMessageBox (ilTemplate $roomTpl) | |
renderLanguageVariables (ilTemplate $roomTpl) | |
renderRightUsersBlock (ilTemplate $roomTpl) | |
![]() | |
getRequestValue (string $key, Transformation $trafo, $default=null) | |
hasRequestValue (string $key) | |
getRoomByObjectId (int $objectId) | |
exitIfNoRoomExists (?ilChatroom $room) | |
Checks if a ilChatroom exists. More... | |
exitIfNoRoomModeratePermission (ilChatroom $room, int $subRoom, ilChatroomUser $chatUser) | |
Check if user can moderate a chatroom. More... | |
canModerate (ilChatroom $room, int $subRoom, int $usrId) | |
isMainRoom (int $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 (string $message) | |
Calls ilUtil::sendFailure method using given $message as parameter. More... | |
showNameSelection (ilChatroomUser $chat_user) | |
Additional Inherited Members | |
![]() | |
ilChatroomObjectGUI | $gui |
ilObjUser | $ilUser |
ilCtrlInterface | $ilCtrl |
ilLanguage | $ilLng |
Filesystem | $webDirectory |
ilObjectService | $obj_service |
FileUpload | $upload |
ilRbacSystem | $rbacsystem |
ilGlobalTemplateInterface | $mainTpl |
ILIAS | $ilias |
ilNavigationHistory | $navigationHistory |
ilTree | $tree |
ilTabsGUI | $tabs |
UIFactory | $uiFactory |
UIRenderer | $uiRenderer |
GlobalHttpState | $http |
Refinery | $refinery |
|
private |
Calls ilUtil::sendFailure method using given $message as parameter.
string | $message |
Definition at line 355 of file class.ilChatroomViewGUI.php.
Referenced by executeDefault(), and showRoom().
ilChatroomViewGUI::executeDefault | ( | string | $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.
Definition at line 453 of file class.ilChatroomViewGUI.php.
References ilChatroom\byObjectId(), cancelJoin(), ilChatroomGUIHandler\redirectIfNoPermission(), setupTemplate(), showNameSelection(), and showRoom().
ilChatroomViewGUI::invitePD | ( | ) |
Definition at line 487 of file class.ilChatroomViewGUI.php.
References ilChatroom\byObjectId(), ilChatroomGUIHandler\getRequestValue(), ILIAS\Repository\refinery(), and ilSession\set().
ilChatroomViewGUI::joinWithCustomName | ( | ) |
Definition at line 32 of file class.ilChatroomViewGUI.php.
References ilChatroom\byObjectId(), ilChatroomGUIHandler\getRequestValue(), ilChatroomGUIHandler\hasRequestValue(), ilChatroomGUIHandler\redirectIfNoPermission(), ILIAS\Repository\refinery(), setupTemplate(), showNameSelection(), and showRoom().
ilChatroomViewGUI::logout | ( | ) |
Definition at line 515 of file class.ilChatroomViewGUI.php.
ilChatroomViewGUI::lostConnection | ( | ) |
Definition at line 522 of file class.ilChatroomViewGUI.php.
References $DIC, $response, ANONYMOUS_USER_ID, ilChatroom\byObjectId(), ilUserUtil\getNamePresentation(), ilChatroomGUIHandler\getRequestValue(), ilChatroomUser\getUserInformation(), ilChatroomGUIHandler\hasRequestValue(), ILIAS\FileDelivery\http(), ILIAS\UI\examples\Symbol\Glyph\Login\login(), ILIAS\Repository\refinery(), ilChatroomGUIHandler\sendResponse(), ilWACSignedPath\setTokenMaxLifetimeInSeconds(), and ilStr\subStr().
|
protected |
Definition at line 369 of file class.ilChatroomViewGUI.php.
References HTML_Template_IT\setVariable().
Referenced by showRoom().
|
protected |
Definition at line 426 of file class.ilChatroomViewGUI.php.
References HTML_Template_IT\setVariable().
Referenced by showRoom().
|
protected |
Definition at line 360 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 78 of file class.ilChatroomViewGUI.php.
Referenced by executeDefault(), and joinWithCustomName().
|
private |
Definition at line 431 of file class.ilChatroomViewGUI.php.
References ilChatroomUser\getChatNameSuggestions().
Referenced by executeDefault(), and joinWithCustomName().
|
private |
Prepares and displays chatroom and connects user to it.
ilChatroom | $room | |
ilChatroomUser | $chat_user |
Definition at line 95 of file class.ilChatroomViewGUI.php.
References $id, ILIAS\LTI\ToolProvider\$key, $params, $ref_id, $response, $scope, ILIAS\LTI\ToolProvider\$settings, cancelJoin(), ilChatroom\checkUserPermissions(), ilChatroom\connectUser(), ilChatroomUser\enabledBroadcastTyping(), ilChatroom\getActivePrivateRooms(), ilChatroom\getConnectedUsers(), ilUtil\getImagePath(), ilPanelGUI\getInstance(), ilChatroom\getLastMessages(), ilChatroomGUIHandler\getRequestValue(), ilChatroom\getRoomId(), ilChatroom\getSetting(), ilChatroomUser\getUserId(), ilChatroomUser\getUsername(), ilChatroomGUIHandler\hasRequestValue(), ilPanelGUI\HEADING_STYLE_BLOCK, ilModalGUI\initJS(), ilChatroom\isAllowedToEnterPrivateRoom(), ilChatroom\isSubscribed(), ilChatroomGUIHandler\isSuccessful(), ilChatroom\isUserBanned(), ilPanelGUI\PANEL_STYLE_SECONDARY, ilChatroomGUIHandler\redirectIfNoPermission(), ILIAS\Repository\refinery(), renderLanguageVariables(), renderRightUsersBlock(), renderSendMessageBox(), ilChatroom\subscribeUserToPrivateRoom(), and ILIAS\UI\Implementation\Component\withOnLoadCode().
Referenced by executeDefault(), and joinWithCustomName().
ilChatroomViewGUI::toggleAutoMessageDisplayState | ( | ) |
Definition at line 325 of file class.ilChatroomViewGUI.php.
References ilObjUser\_writePref(), ilChatroom\byObjectId(), ILIAS\FileDelivery\http(), ilChatroomGUIHandler\redirectIfNoPermission(), and ILIAS\Repository\refinery().