ILIAS
Release_4_2_x_branch Revision 61807
|
Class ilChatroomBanTask. More...
Public Member Functions | |
__construct (ilDBayObjectGUI $gui) | |
Constructor. | |
show () | |
Displays banned users task. | |
delete () | |
Unbans users fetched from $_REQUEST['banned_user_id']. | |
executeDefault ($method) | |
Calls $this->show method. | |
active () | |
Kicks and bans user, fetched from $_REQUEST['user'] and adds history entry. | |
Public Member Functions inherited from ilDBayTaskHandler | |
execute ($method) | |
Executes given $method if existing, otherwise executes executeDefault() method. |
Private Member Functions | |
buildMessage ($messageString, ilChatroomUser $user) | |
Instantiates stdClass, sets $data->user and $data->userToKick using given $messageString and $chat_user and returns $data. |
Private Attributes | |
$gui |
ilChatroomBanTask::__construct | ( | ilDBayObjectGUI | $gui | ) |
Constructor.
Sets $this->gui using given $gui. Requires ilChatroom.
ilDBayObjectGUI | $gui |
Reimplemented from ilDBayTaskHandler.
Definition at line 27 of file class.ilChatroomBanTask.php.
References $gui.
ilChatroomBanTask::active | ( | ) |
Kicks and bans user, fetched from $_REQUEST['user'] and adds history entry.
ilObjUser $ilUser
Definition at line 101 of file class.ilChatroomBanTask.php.
References $_REQUEST, $query, buildMessage(), ilChatroom\byObjectId(), ilChatroom\checkUserPermissions(), exit, ilUtil\redirect(), and ilUtil\stripSlashes().
|
private |
Instantiates stdClass, sets $data->user and $data->userToKick using given $messageString and $chat_user and returns $data.
string | $messageString | |
ilChatroomUser | $user |
Definition at line 177 of file class.ilChatroomBanTask.php.
References $data.
Referenced by active().
ilChatroomBanTask::delete | ( | ) |
Unbans users fetched from $_REQUEST['banned_user_id'].
ilCtrl2 $ilCtrl
Definition at line 69 of file class.ilChatroomBanTask.php.
References $_REQUEST, $ilCtrl, and ilChatroom\byObjectId().
ilChatroomBanTask::executeDefault | ( | $method | ) |
Calls $this->show method.
string | $method |
Reimplemented from ilDBayTaskHandler.
Definition at line 91 of file class.ilChatroomBanTask.php.
References show().
ilChatroomBanTask::show | ( | ) |
Displays banned users task.
ilCtrl2 $ilCtrl
Definition at line 38 of file class.ilChatroomBanTask.php.
References $ilCtrl, ilChatroom\byObjectId(), and ilChatroom\checkUserPermissions().
Referenced by executeDefault().
|
private |
Definition at line 17 of file class.ilChatroomBanTask.php.
Referenced by __construct().