19declare(strict_types=1);
41 public const string ACTION_ID =
'book_for_participant';
46 private readonly UIFactory $ui_factory,
52 private readonly
int $pool_id
68 return $this->
access->canManageParticipants($this->ref_id);
77 return $this->ui_factory->table()->action()->single(
78 $this->
lng->txt(
'book_assign_object'),
80 ->withParameter($action_token, self::
ACTION_ID)
81 ->withParameter($action_type_token,
'book'),
92 $user_id = $this->
http->resolveRowParameter($row_id_token->getName());
94 $this->
ctrl->setParameterByClass(ilBookingParticipantGUI::class,
'bkusr', (
string)
$user_id);
95 $this->
ctrl->redirectByClass(ilBookingParticipantGUI::class,
'assignObjects');
105 $obj_count = (
int) ($record[
'obj_count'] ?? 0);
@phpstan-type ParticipantRecord array{user_id: int, name: string, object_title: array<string>,...
allowActionForRecord(mixed $record)
onExecute(URLBuilder $url_builder, URLBuilderToken $row_id_token, URLBuilderToken $action_token, URLBuilderToken $action_type_token)
getTableAction(URLBuilder $url_builder, URLBuilderToken $row_id_token, URLBuilderToken $action_token, URLBuilderToken $action_type_token)
const string ACTION_LABEL
__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)
Builds a Color from either hex- or rgb values.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getNumberOfObjectsForPool(int $a_pool_id)
Get number of booking objects for given booking pool id.
@ilCtrl_Calls ilBookingParticipantGUI: ilRepositorySearchGUI
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.