19declare(strict_types=1);
45 protected readonly UIFactory $ui_factory,
49 protected readonly array $actions
62 ? $action->getTableAction($url_builder, $row_id_token, $action_token, $action_type_token)
75 if (!$this->
http->
has($action_token->getName())) {
79 $action_id = $this->
http->resolveRowParameter($action_token->getName());
80 $action = $this->actions[$action_id] ??
null;
81 if ($action ===
null) {
85 $response = $action->onExecute($url_builder, $row_id_token, $action_token, $action_type_token);
92 foreach ($this->actions as $action_id => $action) {
93 if ($action->allowActionForRecord($record)) {
onDataRow(DataRow $row, mixed $record)
execute(URLBuilder $url_builder, URLBuilderToken $row_id_token, URLBuilderToken $action_token, URLBuilderToken $action_type_token)
getEnabledActions(URLBuilder $url_builder, URLBuilderToken $row_id_token, URLBuilderToken $action_token, URLBuilderToken $action_type_token)
__construct(protected readonly ilCtrlInterface $ctrl, protected readonly ilLanguage $lng, protected readonly ilGlobalTemplateInterface $tpl, protected readonly UIFactory $ui_factory, protected readonly UIRenderer $ui_renderer, protected readonly Refinery $refinery, protected readonly HttpService $http, protected readonly array $actions)
Builds a Color from either hex- or rgb values.
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This describes commonalities between the different modals.
withDisabledAction(string $action_id, bool $disable=true)
Refer to an Action by its id and disable it for this row/record only.
An entity that renders components to a string output.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
readonly HttpService $http
readonly UIRenderer $ui_renderer
static http()
Fetches the global http state from ILIAS.
if(!file_exists('../ilias.ini.php'))