19declare(strict_types=1);
40 private readonly UIFactory $ui_factory,
46 private readonly
bool $active_management,
62 return $this->active_management && $this->
access->canManageObjects($this->ref_id);
71 return $this->ui_factory->table()->action()->single(
74 ->withParameter($action_token, self::
ACTION_ID)
75 ->withParameter($action_type_token,
'edit'),
86 $row_id = (string) $this->
http->resolveRowParameter($row_id_token->getName());
87 $object_id = (
int) explode(
'_', $row_id)[0];
88 if ($object_id <= 0) {
92 $this->
ctrl->setParameterByClass(ilBookingObjectGUI::class,
'object_id', (
string) $object_id);
93 $this->
ctrl->redirectByClass(ilBookingObjectGUI::class,
'edit');
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)
allowActionForRecord(mixed $record)
const string ACTION_LABEL
__construct(private readonly UIFactory $ui_factory, private readonly ilLanguage $lng, private readonly ilCtrlInterface $ctrl, private readonly HttpService $http, private readonly AccessManager $access, private readonly int $ref_id, private readonly bool $active_management,)
Builds a Color from either hex- or rgb values.
@ilCtrl_Calls ilBookingObjectGUI: ilPropertyFormGUI, ilBookingProcessWithScheduleGUI,...
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.