ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilChatroomPostMessageGUI. More...
Public Member Functions | |
executeDefault ($method) | |
Prepares and posts message fetched from $_REQUEST['message'] to recipients fetched from $_REQUEST['recipient'] and adds an entry to history if successful. 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, $params, ilChatroomUser $chat_user) | |
Instantiates stdClass, sets $data->user, $data->message, $data->public and $data->recipients using given $chat_user, $messageString and $params 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 | |
Class ilChatroomPostMessageGUI.
DELETE THIS
Definition at line 11 of file class.ilChatroomPostMessageGUI.php.
|
private |
Instantiates stdClass, sets $data->user, $data->message, $data->public and $data->recipients using given $chat_user, $messageString and $params and returns $data.
string | $messageString | |
array | $params | |
ilChatroomUser | $chat_user |
Definition at line 96 of file class.ilChatroomPostMessageGUI.php.
References $data, $params, and time.
Referenced by executeDefault().
ilChatroomPostMessageGUI::executeDefault | ( | $method | ) |
Prepares and posts message fetched from $_REQUEST['message'] to recipients fetched from $_REQUEST['recipient'] and adds an entry to history if successful.
ilObjUser $ilUser
string | $method |
Definition at line 20 of file class.ilChatroomPostMessageGUI.php.
References ilChatroomGUIHandler\$ilCtrl, ilChatroomGUIHandler\$ilUser, $message, $params, $query, $response, array, buildMessage(), ilChatroom\byObjectId(), exit, ilChatroomGUIHandler\redirectIfNoPermission(), and ilUtil\stripSlashes().