|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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 | |
| $rbacsystem | |
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 42 of file class.ilChatroomGUIHandler.php.
References $gui, $ilCtrl, $ilUser, $lng, and $rbacsystem.
|
protected |
Checks if the user has permission to moderate a ilChatroom.
| ilChatroom | $room | |
| int | $subRoom | |
| int | $user_id |
Definition at line 115 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 145 of file class.ilChatroomGUIHandler.php.
References executeDefault().
Here is the call graph for this function:
|
abstract |
| string | $requestedMethod |
Reimplemented in 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 66 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 95 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 57 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 134 of file class.ilChatroomGUIHandler.php.
Referenced by canModerate().
Here is the caller graph for this function:
|
protected |
| int | $subRoomId |
Definition at line 124 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.
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 169 of file class.ilChatroomGUIHandler.php.
References ilChatroom\checkUserPermissions(), ilCtrl\redirectByClass(), and ilCtrl\setParameterByClass().
Referenced by ilChatroomBanGUI\active(), ilChatroomPrivateRoomGUI\create(), ilChatroomClearGUI\executeDefault(), ilChatroomKickGUI\executeDefault(), and ilChatroomInviteUsersToPrivateRoomGUI\inviteById().
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 83 of file class.ilChatroomGUIHandler.php.
References 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 __construct(), ilChatroomAdminSmileyGUI\deleteSmileyObject(), ilChatroomUploadFileGUI\displayLinkToUploadedFile(), ilChatroomInitialGUI\executeDefault(), ilChatroomPostMessageGUI\executeDefault(), ilChatroomAdminSmileyGUI\initSmiliesEditForm(), ilChatroomAdminSmileyGUI\initSmiliesForm(), ilChatroomKickGUI\sub(), ilChatroomAdminSmileyGUI\updateSmiliesObject(), ilChatroomUploadFileGUI\uploadFile(), and ilChatroomAdminSmileyGUI\uploadSmileyObject().
|
protected |
Definition at line 32 of file class.ilChatroomGUIHandler.php.
|
protected |
Definition at line 22 of file class.ilChatroomGUIHandler.php.
Referenced by __construct(), ilChatroomInitialGUI\executeDefault(), ilChatroomPostMessageGUI\executeDefault(), ilChatroomKickGUI\sub(), and ilChatroomUploadFileGUI\uploadFile().
|
protected |
Definition at line 37 of file class.ilChatroomGUIHandler.php.
Referenced by __construct(), ilChatroomAdminSmileyGUI\deleteSmileyObject(), ilChatroomAdminSmileyGUI\editSmiliesObject(), ilChatroomInitialGUI\executeDefault(), ilChatroomAdminSmileyGUI\showEditSmileyEntryFormObject(), ilChatroomAdminSmileyGUI\updateSmiliesObject(), and ilChatroomAdminSmileyGUI\uploadSmileyObject().