|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Class ilChatroomViewGUI. More...
Inheritance diagram for ilChatroomViewGUI:
Collaboration diagram for ilChatroomViewGUI:Public Member Functions | |
| joinWithCustomName () | |
| readOnlyChatWindow (ilChatroom $room, array $messages) | |
| toggleAutoMessageDisplayState () | |
| executeDefault (string $requestedMethod) | |
| Chatroom and Chatuser get prepared before $this->showRoom method is called. More... | |
| logout () | |
| lostConnection () | |
| userEntry () | |
Public Member Functions inherited from ilChatroomGUIHandler | |
| 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... | |
| hasPermission (string $permission) | |
Protected Member Functions | |
| renderSendMessageBox (ilTemplate $roomTpl) | |
| renderRightUsersBlock (ilTemplate $roomTpl) | |
Protected Member Functions inherited from ilChatroomGUIHandler | |
| getRequestValue (string $key, Transformation $trafo, $default=null) | |
| hasRequestValue (string $key) | |
| getRoomByObjectId (int $objectId) | |
| exitIfNoRoomExists (?ilChatroom $room) | |
| Checks if a ilChatroom exists. More... | |
| sendJSONResponse ($response) | |
| Sends a json encoded response and exits the php process. More... | |
| sendResponse (string $content, string $type) | |
| Sends a response and exits the php process. More... | |
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... | |
| sendMessageForm () | |
| userList () | |
| chatFunctions (bool $show_auto_messages, bool $is_moderator) | |
| checkbox (Component $component) | |
| legacy (string $html) | |
| panel (string $title, $body) | |
| cancelJoin (string $message) | |
| Calls ilUtil::sendFailure method using given $message as parameter. More... | |
| showNameSelection (ilChatroomUser $chat_user) | |
| buildUserActions (int $user_id, array $actions) | |
| buildChat (ilChatroom $room, ilChatroomServerSettings $settings) | |
Additional Inherited Members | |
Protected Attributes inherited from ilChatroomGUIHandler | |
| 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 |
Definition at line 505 of file class.ilChatroomViewGUI.php.
Referenced by readOnlyChatWindow(), and showRoom().
Here is the caller graph for this function:
|
private |
| array<string|int,string> | $actions |
Definition at line 476 of file class.ilChatroomViewGUI.php.
References $id, and ilObjUser\_lookupPref().
Referenced by userEntry().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Calls ilUtil::sendFailure method using given $message as parameter.
Definition at line 299 of file class.ilChatroomViewGUI.php.
Referenced by executeDefault(), and showRoom().
Here is the caller graph for this function:
|
private |
Definition at line 190 of file class.ilChatroomViewGUI.php.
References Vendor\Package\$b, $c, $id, $text, $txt, checkbox(), legacy(), and panel().
Referenced by showRoom().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 247 of file class.ilChatroomViewGUI.php.
Referenced by chatFunctions().
Here is the caller graph for this function:| 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 337 of file class.ilChatroomViewGUI.php.
References ilChatroom\byObjectId(), cancelJoin(), ilChatroomGUIHandler\redirectIfNoPermission(), setupTemplate(), showNameSelection(), and showRoom().
Here is the call graph for this function:| ilChatroomViewGUI::joinWithCustomName | ( | ) |
Definition at line 35 of file class.ilChatroomViewGUI.php.
References ilChatroom\byObjectId(), ilChatroomGUIHandler\getRequestValue(), ilChatroomGUIHandler\hasRequestValue(), ilChatroomGUIHandler\redirectIfNoPermission(), ILIAS\Repository\refinery(), setupTemplate(), showNameSelection(), and showRoom().
Here is the call graph for this function:
|
private |
Definition at line 252 of file class.ilChatroomViewGUI.php.
Referenced by chatFunctions(), readOnlyChatWindow(), sendMessageForm(), showRoom(), and userList().
Here is the caller graph for this function:| ilChatroomViewGUI::logout | ( | ) |
Definition at line 372 of file class.ilChatroomViewGUI.php.
| ilChatroomViewGUI::lostConnection | ( | ) |
Definition at line 379 of file class.ilChatroomViewGUI.php.
References $DIC, $response, ANONYMOUS_USER_ID, ilUserUtil\getNamePresentation(), ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), ilChatroomGUIHandler\sendJSONResponse(), ilWACSignedPath\setTokenMaxLifetimeInSeconds(), ilStr\subStr(), and ILIAS\Refinery\transform().
Here is the call graph for this function:
|
private |
| Component|array<Component> | $body |
Definition at line 260 of file class.ilChatroomViewGUI.php.
Referenced by chatFunctions(), readOnlyChatWindow(), showRoom(), and userList().
Here is the caller graph for this function:| ilChatroomViewGUI::readOnlyChatWindow | ( | ilChatroom | $room, |
| array | $messages | ||
| ) |
Definition at line 162 of file class.ilChatroomViewGUI.php.
References buildChat(), ilChatroom\getSettings(), legacy(), and panel().
Here is the call graph for this function:
|
protected |
Definition at line 310 of file class.ilChatroomViewGUI.php.
References HTML_Template_IT\setVariable().
Referenced by userList().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 304 of file class.ilChatroomViewGUI.php.
References HTML_Template_IT\setVariable().
Referenced by sendMessageForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 174 of file class.ilChatroomViewGUI.php.
References legacy(), and renderSendMessageBox().
Referenced by showRoom().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Adds CSS and JavaScript files that should be included in the header.
Definition at line 84 of file class.ilChatroomViewGUI.php.
References ilLinkifyUtil\initLinkify().
Referenced by executeDefault(), and joinWithCustomName().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 315 of file class.ilChatroomViewGUI.php.
References ilChatroomUser\getChatNameSuggestions().
Referenced by executeDefault(), and joinWithCustomName().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Prepares and displays chatroom and connects user to it.
Definition at line 97 of file class.ilChatroomViewGUI.php.
References $ref_id, $response, $scope, $user_id, buildChat(), cancelJoin(), chatFunctions(), ilChatroom\checkUserPermissions(), ilChatroom\connectUser(), ilChatroomUser\enabledBroadcastTyping(), ilChatroom\getConnectedUsers(), ilChatroom\getLastMessages(), ilChatroomGUIHandler\getRequestValue(), ilChatroom\getRoomId(), ilChatroom\getSetting(), ilChatroom\getSettings(), ilChatroomUser\getUserId(), ilChatroomUser\getUsername(), ilChatroomUser\isProfilePictureVisible(), ilChatroom\isSubscribed(), ilChatroom\isUserBanned(), legacy(), ILIAS\Repository\navigationHistory(), panel(), ilChatroomGUIHandler\redirectIfNoPermission(), ILIAS\Repository\refinery(), sendMessageForm(), and userList().
Referenced by executeDefault(), and joinWithCustomName().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroomViewGUI::toggleAutoMessageDisplayState | ( | ) |
Definition at line 270 of file class.ilChatroomViewGUI.php.
References ilObjUser\_writePref(), ilChatroom\byObjectId(), ILIAS\FileDelivery\http(), ilChatroomGUIHandler\redirectIfNoPermission(), and ILIAS\Repository\refinery().
Here is the call graph for this function:| ilChatroomViewGUI::userEntry | ( | ) |
Definition at line 437 of file class.ilChatroomViewGUI.php.
References Vendor\Package\$d, $DIC, $ref_id, $user_id, ANONYMOUS_USER_ID, buildUserActions(), ilChatroom\checkPermissionsOfUser(), ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), ilChatroomGUIHandler\sendResponse(), and ilStr\subStr().
Here is the call graph for this function:
|
private |
Definition at line 182 of file class.ilChatroomViewGUI.php.
References legacy(), panel(), and renderRightUsersBlock().
Referenced by showRoom().
Here is the call graph for this function:
Here is the caller graph for this function: