ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
TableAction.php
Go to the documentation of this file.
1<?php
2
20
25use Psr\Http\Message\ServerRequestInterface;
26
27interface TableAction
28{
29 public function getActionId(): string;
30 public function isAvailable(): bool;
31 public function getTableAction(
32 URLBuilder $url_builder,
33 URLBuilderToken $row_id_token,
34 URLBuilderToken $action_token,
35 URLBuilderToken $action_type_token
36 ): Action;
37
41 public function getModal(
42 URLBuilder $url_builder,
43 array $selected_participants,
44 bool $all_participants_selected
45 ): ?Modal;
46
50 public function onSubmit(
51 URLBuilder $url_builder,
52 ServerRequestInterface $request,
53 array $selected_participants,
54 bool $all_participants_selected
55 ): ?Modal;
56 public function allowActionForRecord(Participant $record): bool;
57 public function getSelectionErrorMessage(): ?string;
58}
allowActionForRecord(Participant $record)
getModal(URLBuilder $url_builder, array $selected_participants, bool $all_participants_selected)
getTableAction(URLBuilder $url_builder, URLBuilderToken $row_id_token, URLBuilderToken $action_token, URLBuilderToken $action_type_token)
onSubmit(URLBuilder $url_builder, ServerRequestInterface $request, array $selected_participants, bool $all_participants_selected)
This describes commonalities between the different modals.
Definition: Modal.php:35
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Participant.php:21