|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilChatroomGUIHandler. More...
Inheritance diagram for ilChatroomGUIHandler:
Collaboration diagram for ilChatroomGUIHandler:Public Member Functions | |
| __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 | |
| 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) | |
Protected Attributes | |
| $gui | |
| $ilUser | |
| $ilCtrl | |
| $ilLng | |
| $webDirectory | |
| $upload | |
| $rbacsystem | |
| $mainTpl | |
| $ilias | |
| $navigationHistory | |
| $tree | |
| $tabs | |
Class ilChatroomGUIHandler.
Definition at line 12 of file class.ilChatroomGUIHandler.php.
| ilChatroomGUIHandler::__construct | ( | ilChatroomObjectGUI | $gui | ) |
| ilChatroomObjectGUI | $gui |
Reimplemented in ilChatroomAdminViewGUI, ilChatroomHistoryGUI, and ilChatroomSettingsGUI.
Definition at line 70 of file class.ilChatroomGUIHandler.php.
|
protected |
Checks if the user has permission to moderate a ilChatroom.
| ilChatroom | $room | |
| int | $subRoom | |
| int | $user_id |
Definition at line 148 of file class.ilChatroomGUIHandler.php.
References hasPermission(), and isMainRoom().
Referenced by exitIfNoRoomPermission(), and ilChatroomTaskHandlerMock\mockedCanModerate().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroomGUIHandler::execute | ( | $method | ) |
Executes given $method if existing, otherwise executes executeDefault() method.
| string | $method |
Definition at line 178 of file class.ilChatroomGUIHandler.php.
References executeDefault().
Here is the call graph for this function:
|
abstract |
| string | $requestedMethod |
Reimplemented in ilChatroomAdminSmiliesGUI, ilChatroomAdminViewGUI, ilChatroomBanGUI, ilChatroomClearGUI, ilChatroomCreateGUI, ilChatroomHistoryGUI, ilChatroomInfoGUI, ilChatroomInviteUsersToPrivateRoomGUI, ilChatroomKickGUI, ilChatroomPollGUI, ilChatroomPrivateRoomGUI, ilChatroomViewGUI, ilChatroomAdminSmileyGUI, ilChatroomGetPermissionsGUI, ilChatroomSettingsGUI, and ilChatroomTaskHandlerMock.
Referenced by execute().
Here is the caller graph for this function:
|
protected |
Checks if a ilChatroom exists.
If not, it will send a json encoded response with success = false
| ilChatroom | $room |
Definition at line 101 of file class.ilChatroomGUIHandler.php.
References sendResponse().
Referenced by ilChatroomBanGUI\active(), ilChatroomPrivateRoomGUI\create(), ilChatroomPrivateRoomGUI\delete(), ilChatroomPrivateRoomGUI\enter(), ilChatroomClearGUI\executeDefault(), ilChatroomKickGUI\executeDefault(), ilChatroomInviteUsersToPrivateRoomGUI\inviteById(), ilChatroomPrivateRoomGUI\leave(), ilChatroomKickGUI\main(), and ilChatroomTaskHandlerMock\mockedExitIfNoRoomExists().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Check if user can moderate a chatroom.
If false it send a json decoded response with success = false
| ilChatroom | $room | |
| int | $subRoom | |
| ilChatroomUser | $chat_user |
Definition at line 129 of file class.ilChatroomGUIHandler.php.
References canModerate(), and sendResponse().
Referenced by ilChatroomInviteUsersToPrivateRoomGUI\inviteById(), and ilChatroomTaskHandlerMock\mockedExitIfNoRoomPermission().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| $objectId |
Definition at line 92 of file class.ilChatroomGUIHandler.php.
References ilChatroom\byObjectId().
Referenced by ilChatroomClearGUI\executeDefault().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroomGUIHandler::hasPermission | ( | $permission | ) |
Checks for access with ilRbacSystem.
| string | $permission |
Definition at line 167 of file class.ilChatroomGUIHandler.php.
References ilChatroom\checkUserPermissions().
Referenced by canModerate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| int | $subRoomId |
Definition at line 157 of file class.ilChatroomGUIHandler.php.
Referenced by canModerate(), and ilChatroomInviteUsersToPrivateRoomGUI\inviteById().
Here is the caller graph for this function:| ilChatroomGUIHandler::isSuccessful | ( | $response | ) |
Checks for success param in an json decoded response.
| string | $response |
Definition at line 212 of file class.ilChatroomGUIHandler.php.
References $response.
Referenced by ilChatroomBanGUI\active(), ilChatroomPrivateRoomGUI\create(), ilChatroomPrivateRoomGUI\enter(), ilChatroomKickGUI\executeDefault(), and ilChatroomKickGUI\main().
Here is the caller graph for this function:| ilChatroomGUIHandler::redirectIfNoPermission | ( | $permission | ) |
Checks for requested permissions and redirects if the permission check failed.
| array | string | $permission |
Definition at line 199 of file class.ilChatroomGUIHandler.php.
References ilChatroom\checkUserPermissions(), ilCtrl\redirectByClass(), and ilCtrl\setParameterByClass().
Referenced by ilChatroomBanGUI\active(), ilChatroomAdminViewGUI\clientsettings(), ilChatroomPrivateRoomGUI\create(), ilChatroomPrivateRoomGUI\enter(), ilChatroomClearGUI\executeDefault(), ilChatroomInfoGUI\executeDefault(), ilChatroomKickGUI\executeDefault(), ilChatroomInviteUsersToPrivateRoomGUI\inviteById(), ilChatroomAdminViewGUI\saveClientSettings(), ilChatroomAdminViewGUI\saveSettings(), ilChatroomAdminViewGUI\serversettings(), ilChatroomBanGUI\show(), and ilChatroomHistoryGUI\showMessages().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroomGUIHandler::sendResponse | ( | $response | ) |
Sends a json encoded response and exits the php process.
| array | $response |
Reimplemented in ilChatroomTaskHandlerMock.
Definition at line 117 of file class.ilChatroomGUIHandler.php.
References $response, and exit.
Referenced by ilChatroomBanGUI\active(), ilChatroomPrivateRoomGUI\create(), ilChatroomPrivateRoomGUI\delete(), ilChatroomPrivateRoomGUI\enter(), ilChatroomClearGUI\executeDefault(), ilChatroomKickGUI\executeDefault(), ilChatroomPrivateRoomGUI\exitIfEnterRoomIsNotAllowed(), exitIfNoRoomExists(), exitIfNoRoomPermission(), ilChatroomPrivateRoomGUI\exitIfNoRoomSubscription(), ilChatroomInviteUsersToPrivateRoomGUI\inviteById(), ilChatroomPrivateRoomGUI\leave(), ilChatroomPrivateRoomGUI\listUsers(), ilChatroomKickGUI\main(), and ilChatroomKickGUI\sub().
Here is the caller graph for this function:
|
protected |
Definition at line 17 of file class.ilChatroomGUIHandler.php.
Referenced by ilChatroomAdminViewGUI\__construct(), __construct(), ilChatroomHistoryGUI\__construct(), ilChatroomSettingsGUI\__construct(), ilChatroomBanGUI\__construct(), and ilChatroomInfoGUI\createInfoScreenGUI().
|
protected |
Definition at line 27 of file class.ilChatroomGUIHandler.php.
|
protected |
Definition at line 57 of file class.ilChatroomGUIHandler.php.
|
protected |
Definition at line 32 of file class.ilChatroomGUIHandler.php.
|
protected |
Definition at line 22 of file class.ilChatroomGUIHandler.php.
|
protected |
Definition at line 52 of file class.ilChatroomGUIHandler.php.
|
protected |
Definition at line 60 of file class.ilChatroomGUIHandler.php.
|
protected |
Definition at line 47 of file class.ilChatroomGUIHandler.php.
|
protected |
Definition at line 66 of file class.ilChatroomGUIHandler.php.
|
protected |
Definition at line 63 of file class.ilChatroomGUIHandler.php.
|
protected |
Definition at line 42 of file class.ilChatroomGUIHandler.php.
|
protected |
Definition at line 37 of file class.ilChatroomGUIHandler.php.