ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
|
Class ilChatroomViewGUI. More...
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 () | |
![]() | |
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) | |
![]() | |
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 | |
![]() | |
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().
|
private |
array<string|int,string> | $actions |
Definition at line 476 of file class.ilChatroomViewGUI.php.
References $id, and ilObjUser\_lookupPref().
Referenced by userEntry().
|
private |
Calls ilUtil::sendFailure method using given $message as parameter.
Definition at line 299 of file class.ilChatroomViewGUI.php.
Referenced by executeDefault(), and showRoom().
|
private |
Definition at line 190 of file class.ilChatroomViewGUI.php.
References Vendor\Package\$b, $c, $id, $messages, $txt, checkbox(), legacy(), null, and panel().
Referenced by showRoom().
|
private |
Definition at line 247 of file class.ilChatroomViewGUI.php.
Referenced by chatFunctions().
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().
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().
|
private |
Definition at line 252 of file class.ilChatroomViewGUI.php.
Referenced by chatFunctions(), readOnlyChatWindow(), sendMessageForm(), showRoom(), and userList().
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().
|
private |
Component|array<Component> | $body |
Definition at line 260 of file class.ilChatroomViewGUI.php.
Referenced by chatFunctions(), readOnlyChatWindow(), showRoom(), and userList().
ilChatroomViewGUI::readOnlyChatWindow | ( | ilChatroom | $room, |
array | $messages | ||
) |
Definition at line 162 of file class.ilChatroomViewGUI.php.
References buildChat(), ilChatroom\getSettings(), legacy(), null, and panel().
|
protected |
Definition at line 310 of file class.ilChatroomViewGUI.php.
References HTML_Template_IT\setVariable().
Referenced by userList().
|
protected |
Definition at line 304 of file class.ilChatroomViewGUI.php.
References HTML_Template_IT\setVariable().
Referenced by sendMessageForm().
|
private |
Definition at line 174 of file class.ilChatroomViewGUI.php.
References legacy(), and renderSendMessageBox().
Referenced by showRoom().
|
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().
|
private |
Definition at line 315 of file class.ilChatroomViewGUI.php.
References ilChatroomUser\getChatNameSuggestions().
Referenced by executeDefault(), and joinWithCustomName().
|
private |
Prepares and displays chatroom and connects user to it.
Definition at line 97 of file class.ilChatroomViewGUI.php.
References $messages, $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().
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().
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(), null, ILIAS\Repository\refinery(), ilChatroomGUIHandler\sendResponse(), and ilStr\subStr().
|
private |
Definition at line 182 of file class.ilChatroomViewGUI.php.
References legacy(), panel(), and renderRightUsersBlock().
Referenced by showRoom().