ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilChatroomGUIHandler. More...
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 | ) |
|
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().
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().
|
abstract |
string | $requestedMethod |
Referenced by ilChatroomInfoGUI\__construct(), execute(), and ilChatroomViewGUI\renderFileUploadForm().
|
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 array, and sendResponse().
Referenced by ilChatroomBanGUI\active(), ilChatroomPrivateRoomGUI\create(), ilChatroomPrivateRoomGUI\delete(), ilChatroomPrivateRoomGUI\enter(), ilChatroomClearGUI\executeDefault(), ilChatroomKickGUI\executeDefault(), ilChatroomInviteUsersToPrivateRoomGUI\inviteById(), ilChatroomPrivateRoomGUI\leave(), ilChatroomKickGUI\main(), and ilChatroomTaskHandlerMock\mockedExitIfNoRoomExists().
|
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 array, canModerate(), and sendResponse().
Referenced by ilChatroomInviteUsersToPrivateRoomGUI\inviteById(), and ilChatroomTaskHandlerMock\mockedExitIfNoRoomPermission().
|
protected |
$objectId |
Definition at line 63 of file class.ilChatroomGUIHandler.php.
References ilChatroom\byObjectId().
Referenced by ilChatroomClearGUI\executeDefault().
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().
|
protected |
int | $subRoomId |
Definition at line 128 of file class.ilChatroomGUIHandler.php.
Referenced by canModerate(), and ilChatroomInviteUsersToPrivateRoomGUI\inviteById().
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().
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 ilChatroomHistoryGUI\__construct(), ilChatroomInfoGUI\__construct(), ilChatroomBanGUI\active(), ilChatroomAdminViewGUI\clientsettings(), ilChatroomPrivateRoomGUI\create(), ilChatroomPrivateRoomGUI\enter(), ilChatroomClearGUI\executeDefault(), ilChatroomPostMessageGUI\executeDefault(), ilChatroomKickGUI\executeDefault(), ilChatroomInviteUsersToPrivateRoomGUI\inviteById(), ilChatroomViewGUI\renderFileUploadForm(), ilChatroomAdminViewGUI\saveClientSettings(), ilChatroomAdminViewGUI\saveSettings(), ilChatroomAdminViewGUI\serversettings(), ilChatroomBanGUI\show(), and ilChatroomUploadFileGUI\uploadFile().
ilChatroomGUIHandler::sendResponse | ( | $response | ) |
Sends a json encoded response and exits the php process.
array | $response |
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().
|
protected |
Definition at line 17 of file class.ilChatroomGUIHandler.php.
Referenced by __construct(), and ilChatroomInfoGUI\createInfoScreenGUI().
|
protected |
Definition at line 27 of file class.ilChatroomGUIHandler.php.
Referenced by ilChatroomHistoryGUI\__construct(), ilChatroomInfoGUI\__construct(), ilChatroomSettingsGUI\__construct(), ilChatroomAdminSmileyGUI\deleteSmileyObject(), ilChatroomUploadFileGUI\displayLinkToUploadedFile(), ilChatroomPostMessageGUI\executeDefault(), ilChatroomInitialGUI\executeDefault(), ilChatroomAdminSmileyGUI\initSmiliesEditForm(), ilChatroomAdminSmileyGUI\initSmiliesForm(), and ilChatroomViewGUI\renderFileUploadForm().
|
protected |
Definition at line 32 of file class.ilChatroomGUIHandler.php.
|
protected |
Definition at line 22 of file class.ilChatroomGUIHandler.php.
Referenced by ilChatroomHistoryGUI\__construct(), ilChatroomPostMessageGUI\executeDefault(), ilChatroomInitialGUI\executeDefault(), ilChatroomViewGUI\renderFileUploadForm(), and ilChatroomUploadFileGUI\uploadFile().
|
protected |
Definition at line 42 of file class.ilChatroomGUIHandler.php.
|
protected |
Definition at line 37 of file class.ilChatroomGUIHandler.php.