ILIAS
Release_4_4_x_branch Revision 61816
|
Class ilChatroomPostMessageTask. More...
Public Member Functions | |
__construct (ilChatroomObjectGUI $gui) | |
Constructor. | |
executeDefault ($method) | |
Prepares and posts message fetched from $_REQUEST['message'] to recipients fetched from $_REQUEST['recipient'] and adds an entry to history if successful. |
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. |
Private Attributes | |
$gui |
Class ilChatroomPostMessageTask.
Definition at line 13 of file class.ilChatroomPostMessageTask.php.
ilChatroomPostMessageTask::__construct | ( | ilChatroomObjectGUI | $gui | ) |
Constructor.
Sets $this->gui using given $gui
ilChatroomObjectGUI | $gui |
Reimplemented from ilChatroomTaskHandler.
Definition at line 25 of file class.ilChatroomPostMessageTask.php.
References $gui.
|
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 126 of file class.ilChatroomPostMessageTask.php.
Referenced by executeDefault().
ilChatroomPostMessageTask::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 |
Reimplemented from ilChatroomTaskHandler.
Definition at line 38 of file class.ilChatroomPostMessageTask.php.
References $_REQUEST, $ilCtrl, $ilUser, $query, buildMessage(), ilChatroom\byObjectId(), ilChatroom\checkUserPermissions(), exit, and ilUtil\stripSlashes().
|
private |
Definition at line 16 of file class.ilChatroomPostMessageTask.php.
Referenced by __construct().