19declare(strict_types=1);
60 public function delete():
void
62 $userTrafo = $this->
refinery->kindlyTo()->listOf(
68 $this->mainTpl->setOnScreenMessage(
'info', $this->ilLng->txt(
'no_checkbox'),
true);
75 $room->unbanUser($users);
88 public function show(): void
92 $this->gui->switchToVisibleMode();
98 $table->setFormAction($this->controller->getFormAction($this->gui,
'ban-show'));
100 $data = $room->getBannedUsers();
101 $actorId = array_filter(array_map(
static function (array $row):
int {
102 return (
int) $row[
'actor_id'];
108 array_walk(
$data,
function (&$row) use ($names, $sortable_names):
void {
109 if ($row[
'actor_id'] > 0 && isset($names[$row[
'actor_id']])) {
110 $row[
'actor_display'] = $names[$row[
'actor_id']];
111 $row[
'actor'] = $sortable_names[$row[
'actor_id']];
113 $row[
'actor_display'] = $this->
language->txt(
'unknown');
114 $row[
'actor'] = $this->
language->txt(
'unknown');
118 $table->setData(
$data);
120 $this->mainTpl->setVariable(
'ADM_CONTENT', $table->getHTML());
133 $connector = $this->gui->getConnector();
134 $response = $connector->sendBan($room->getRoomId(), $subRoomId, $userToBan);
137 $room->banUser($userToBan, $this->
user->getId());
138 $room->disconnectUser($userToBan);
Class ilBannedUsersTableGUI.
show()
Displays banned users task.
__construct(ilChatroomObjectGUI $gui, ilCtrlInterface $controller=null, ilLanguage $language=null, ilObjUser $user=null)
executeDefault(string $requestedMethod)
ilCtrlInterface $controller
Class ilChatroomGUIHandler.
redirectIfNoPermission($permission)
Checks for requested permissions and redirects if the permission check failed.
exitIfNoRoomExists(?ilChatroom $room)
Checks if a ilChatroom exists.
sendResponse($response, bool $isJson=false)
Sends a json encoded response and exits the php process.
isSuccessful($response)
Checks for success param in an json decoded response.
getRequestValue(string $key, Transformation $trafo, $default=null)
static byObjectId(int $object_id)
Class ilCtrl provides processing control methods.
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
@inheritDoc
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link="", bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc