|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 | |
Class ilChatroomGUIHandler.
Definition at line 12 of file class.ilChatroomGUIHandler.php.
| ilChatroomGUIHandler::__construct | ( | ilChatroomObjectGUI | $gui | ) |
| ilChatroomObjectGUI | $gui |
Reimplemented in ilChatroomAdminViewGUI, ilChatroomHistoryGUI, ilChatroomInfoGUI, ilChatroomInitialGUI, ilChatroomInviteUsersToPrivateRoomGUI, ilChatroomPrivateRoomGUI, and ilChatroomSettingsGUI.
Definition at line 47 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 119 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 149 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, ilChatroomInitialGUI, ilChatroomInviteUsersToPrivateRoomGUI, ilChatroomKickGUI, ilChatroomPollGUI, ilChatroomPostMessageGUI, ilChatroomPrivateRoomGUI, ilChatroomAdminSmileyGUI, ilChatroomGetPermissionsGUI, ilChatroomSettingsGUI, ilChatroomUploadFileGUI, 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 72 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 100 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 63 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 138 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 128 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 183 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 170 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(), ilChatroomKickGUI\executeDefault(), ilChatroomPostMessageGUI\executeDefault(), ilChatroomInviteUsersToPrivateRoomGUI\inviteById(), ilChatroomAdminViewGUI\saveClientSettings(), ilChatroomAdminViewGUI\saveSettings(), ilChatroomAdminViewGUI\serversettings(), ilChatroomBanGUI\show(), and ilChatroomUploadFileGUI\uploadFile().
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 88 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(), ilChatroomInfoGUI\__construct(), ilChatroomInitialGUI\__construct(), ilChatroomInviteUsersToPrivateRoomGUI\__construct(), ilChatroomPrivateRoomGUI\__construct(), ilChatroomSettingsGUI\__construct(), and ilChatroomInfoGUI\createInfoScreenGUI().
|
protected |
Definition at line 27 of file class.ilChatroomGUIHandler.php.
Referenced by ilChatroomAdminSmileyGUI\deleteSmileyObject(), ilChatroomUploadFileGUI\displayLinkToUploadedFile(), ilChatroomInitialGUI\executeDefault(), ilChatroomPostMessageGUI\executeDefault(), ilChatroomAdminSmileyGUI\initSmiliesEditForm(), and ilChatroomAdminSmileyGUI\initSmiliesForm().
|
protected |
Definition at line 32 of file class.ilChatroomGUIHandler.php.
|
protected |
Definition at line 22 of file class.ilChatroomGUIHandler.php.
Referenced by ilChatroomInitialGUI\executeDefault(), ilChatroomPostMessageGUI\executeDefault(), and ilChatroomUploadFileGUI\uploadFile().
|
protected |
Definition at line 42 of file class.ilChatroomGUIHandler.php.
|
protected |
Definition at line 37 of file class.ilChatroomGUIHandler.php.