19declare(strict_types=1);
48 private readonly UIFactory $ui_factory,
54 private readonly
int $pool_id
70 return $this->
access->canManageParticipants($this->ref_id);
79 return $this->ui_factory->table()->action()->single(
80 $this->
lng->txt(
'book_deassign'),
82 ->withParameter($action_token, self::
ACTION_ID)
83 ->withParameter($action_type_token,
'edit'),
94 $this->
ctrl->setParameterByClass(
97 (
int) $this->
http->resolveRowParameter($row_id_token->getName())
99 $this->
ctrl->redirectByClass(ilBookingReservationsGUI::class,
'log');
109 $obj_count = (
int) ($record[
'obj_count'] ?? 0);
110 return $obj_count > 0;
118 )[
"{$this->pool_id}_{$user_id}"] ??
null;
119 return (
int) ($user_data[
'obj_count'] ?? 0);
130 )[
"{$this->pool_id}_{$user_id}"] ??
null;
131 return $user_data[
'object_ids'] ?? [];
@phpstan-type ParticipantRecord array{user_id: int, name: string, object_title: array<string>,...
__construct(private readonly UIFactory $ui_factory, private readonly ilLanguage $lng, private readonly AccessManager $access, private readonly ilCtrlInterface $ctrl, private readonly HttpService $http, private readonly int $ref_id, private readonly int $pool_id)
getObjectIdsForUser(int $user_id)
getTableAction(URLBuilder $url_builder, URLBuilderToken $row_id_token, URLBuilderToken $action_token, URLBuilderToken $action_type_token)
onExecute(URLBuilder $url_builder, URLBuilderToken $row_id_token, URLBuilderToken $action_token, URLBuilderToken $action_type_token)
allowActionForRecord(mixed $record)
getObjectCountForUser(int $user_id)
const string ACTION_LABEL
Builds a Color from either hex- or rgb values.
@ilCtrl_Calls ilBookingParticipantGUI: ilRepositorySearchGUI
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getList(int $a_booking_pool, ?array $a_filter=null, ?int $a_object_id=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
readonly HttpService $http
static http()
Fetches the global http state from ILIAS.