ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilChatroomKickGUI. More...
Public Member Functions | |
executeDefault ($method) | |
Displays window box to kick a user fetched from $_REQUEST['user']. More... | |
main () | |
sub () | |
Kicks user from subroom into mainroom. More... | |
Public Member Functions inherited from ilChatroomGUIHandler | |
__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... | |
Private Member Functions | |
buildMessage ($messageString, ilChatroomUser $chat_user) | |
Instantiates stdClass, sets $data->user and $data->userToKick using given $messageString and $chat_user and returns $data. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from ilChatroomGUIHandler | |
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 inherited from ilChatroomGUIHandler | |
$gui | |
$ilUser | |
$ilCtrl | |
$ilLng | |
$webDirectory | |
$upload | |
$rbacsystem | |
$mainTpl | |
$ilias | |
$navigationHistory | |
$tree | |
$tabs | |
|
private |
Instantiates stdClass, sets $data->user and $data->userToKick using given $messageString and $chat_user and returns $data.
string | $messageString | |
ilChatroomUser | $chat_user |
Definition at line 22 of file class.ilChatroomKickGUI.php.
References $data.
ilChatroomKickGUI::executeDefault | ( | $method | ) |
Displays window box to kick a user fetched from $_REQUEST['user'].
Definition at line 38 of file class.ilChatroomKickGUI.php.
References $response, ilChatroom\byObjectId(), ilChatroomGUIHandler\exitIfNoRoomExists(), ilChatroomGUIHandler\isSuccessful(), ilChatroomGUIHandler\redirectIfNoPermission(), and ilChatroomGUIHandler\sendResponse().
ilChatroomKickGUI::main | ( | ) |
Definition at line 59 of file class.ilChatroomKickGUI.php.
References $response, ilChatroom\byObjectId(), ilChatroomGUIHandler\exitIfNoRoomExists(), ilChatroomGUIHandler\isSuccessful(), and ilChatroomGUIHandler\sendResponse().
ilChatroomKickGUI::sub | ( | ) |
Kicks user from subroom into mainroom.
Definition at line 81 of file class.ilChatroomKickGUI.php.
References $response, ilChatroom\byObjectId(), ilChatroom\checkUserPermissions(), ilCtrl\redirectByClass(), ilChatroomGUIHandler\sendResponse(), and ilCtrl\setParameterByClass().