4require_once 
'Modules/Chatroom/classes/class.ilChatroom.php';
 
    5require_once 
'Modules/Chatroom/classes/class.ilChatroomUser.php';
 
   18    public function delete()
 
   20        $users = $_REQUEST[
'banned_user_id'];
 
   46        include_once 
'Modules/Chatroom/classes/class.ilChatroom.php';
 
   50        $this->gui->switchToVisibleMode();
 
   52        require_once 
'Modules/Chatroom/classes/class.ilBannedUsersTableGUI.php';
 
   55        $table->setFormAction(
$GLOBALS[
'DIC']->ctrl()->getFormAction($this->gui, 
'ban-show'));
 
   59            $data = $room->getBannedUsers();
 
   61            $actorIDs = array_filter(array_map(
function (
$row) {
 
   62                return $row[
'actor_id'];
 
   65            require_once 
'Services/User/classes/class.ilUserUtil.php';
 
   72                    $row[
'actor']         = $sortable_names[
$row[
'actor_id']];
 
   74                    $row[
'actor_display'] = 
$GLOBALS[
'DIC']->language()->txt(
'unknown');
 
   75                    $row[
'actor']         = 
$GLOBALS[
'DIC']->language()->txt(
'unknown');
 
   82        $this->gui->tpl->setVariable(
'ADM_CONTENT', 
$table->getHTML());
 
   93        $subRoomId = $_REQUEST[
'sub'];
 
   94        $userToBan = $_REQUEST[
'user'];
 
   98        $connector = $this->gui->getConnector();
 
   99        $response  = $connector->sendBan($room->getRoomId(), $subRoomId, $userToBan); 
 
  102            $room->banUser($_REQUEST[
'user'], 
$GLOBALS[
'DIC']->
user()->getId());
 
  103            $room->disconnectUser($_REQUEST[
'user']);
 
An exception for terminatinating execution or to throw for unit testing.
Class ilBannedUsersTableGUI.
active()
Kicks and bans user, fetched from $_REQUEST['user'] and adds history entry.
executeDefault($method)
{mixed}
show()
Displays banned users task.
Class ilChatroomGUIHandler.
redirectIfNoPermission($permission)
Checks for requested permissions and redirects if the permission check failed.
sendResponse($response)
Sends a json encoded response and exits the php process.
exitIfNoRoomExists($room)
Checks if a ilChatroom exists.
isSuccessful($response)
Checks for success param in an json decoded response.
static byObjectId($object_id)
Returns ilChatroom object by given $object_id.
This class provides processing control methods.
redirect($a_gui_obj, $a_cmd="", $a_anchor="", $a_asynch=false)
Redirect to another command.
static getNamePresentation( $a_user_id, $a_user_image=false, $a_profile_link=false, $a_profile_back_link="", $a_force_first_lastname=false, $a_omit_login=false, $a_sortable=true, $a_return_data_array=false, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
if(empty($password)) $table