ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
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 |
ILIAS FileDelivery Services | $file_delivery |
|
private |
Definition at line 504 of file class.ilChatroomViewGUI.php.
|
private |
array<string|int,string> | $actions |
Definition at line 475 of file class.ilChatroomViewGUI.php.
References $id, $user_id, and ilObjUser\_lookupPref().
|
private |
Calls ilUtil::sendFailure method using given $message as parameter.
Definition at line 298 of file class.ilChatroomViewGUI.php.
References $message.
|
private |
Definition at line 190 of file class.ilChatroomViewGUI.php.
References Vendor\Package\$b, $c, $id, $messages, $txt, and ILIAS\UI\examples\MainControls\Slate\Legacy\legacy().
|
private |
Definition at line 247 of file class.ilChatroomViewGUI.php.
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. @inheritDoc
Reimplemented from ilChatroomGUIHandler.
Definition at line 336 of file class.ilChatroomViewGUI.php.
References ilChatroom\byObjectId(), and ilCtrl\redirect().
ilChatroomViewGUI::joinWithCustomName | ( | ) |
Definition at line 35 of file class.ilChatroomViewGUI.php.
References ilChatroom\byObjectId(), ilChatroomGUIHandler\getRequestValue(), ilChatroomGUIHandler\hasRequestValue(), ilChatroomGUIHandler\redirectIfNoPermission(), ILIAS\Repository\refinery(), and setupTemplate().
|
private |
Definition at line 252 of file class.ilChatroomViewGUI.php.
ilChatroomViewGUI::logout | ( | ) |
Definition at line 371 of file class.ilChatroomViewGUI.php.
References ilCtrl\redirectByClass(), and ilCtrl\setParameterByClass().
ilChatroomViewGUI::lostConnection | ( | ) |
Definition at line 378 of file class.ilChatroomViewGUI.php.
References ILIAS\FileDelivery\http(), and ilCtrl\redirectByClass().
|
private |
Component|array<Component> | $body |
Definition at line 260 of file class.ilChatroomViewGUI.php.
ilChatroomViewGUI::readOnlyChatWindow | ( | ilChatroom | $room, |
array | $messages | ||
) |
Definition at line 162 of file class.ilChatroomViewGUI.php.
References $messages, and ilChatroom\getSettings().
|
protected |
Definition at line 309 of file class.ilChatroomViewGUI.php.
References HTML_Template_IT\setVariable().
|
protected |
Definition at line 303 of file class.ilChatroomViewGUI.php.
References HTML_Template_IT\setVariable().
|
private |
Definition at line 174 of file class.ilChatroomViewGUI.php.
References ILIAS\UI\examples\MainControls\Slate\Legacy\legacy().
|
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 joinWithCustomName().
|
private |
Definition at line 314 of file class.ilChatroomViewGUI.php.
References ilChatroomUser\getChatNameSuggestions(), ilCtrl\getFormAction(), and ilCtrl\saveParameter().
|
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, ilChatroom\checkUserPermissions(), ilChatroom\connectUser(), ilChatroomUser\enabledBroadcastTyping(), ilChatroom\getConnectedUsers(), ilChatroom\getLastMessages(), ilCtrl\getLinkTargetByClass(), ilChatroom\getRoomId(), ilChatroom\getSetting(), ilChatroom\getSettings(), ilChatroomUser\getUserId(), ilChatroomUser\getUsername(), ilChatroomUser\isProfilePictureVisible(), ilChatroom\isSubscribed(), ilChatroom\isUserBanned(), ILIAS\Repository\navigationHistory(), ilCtrl\redirectByClass(), and ILIAS\Repository\refinery().
ilChatroomViewGUI::toggleAutoMessageDisplayState | ( | ) |
Definition at line 270 of file class.ilChatroomViewGUI.php.
References ilChatroom\byObjectId(), ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
ilChatroomViewGUI::userEntry | ( | ) |
Definition at line 436 of file class.ilChatroomViewGUI.php.
References Vendor\Package\$d, $DIC, $ref_id, $user_id, ANONYMOUS_USER_ID, ilChatroom\checkPermissionsOfUser(), ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), and ilStr\subStr().
|
private |
Definition at line 182 of file class.ilChatroomViewGUI.php.