ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ExternalActionProvider.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27
33{
37 private array $single_actions = [];
41 private array $top_actions = [];
42
43 private array $top_actions_modals = [];
44
45 public function addSingleAction(string $key, SingleAction $action): void
46 {
47 $this->single_actions[$key] = $action;
48 }
49
50 public function addTopAction(string $key, TopAction $action, ?RoundTrip $modal = null): void
51 {
52 $this->top_actions[$key] = $action;
53 if ($modal) {
54 $this->top_actions_modals[] = $modal;
55 }
56 }
57
58 public function getTopActions(): array
59 {
60 return $this->top_actions;
61 }
62
63 public function getSingleActions(Request $view_request): array
64 {
66 }
67
68 public function getComponents(): array
69 {
71 }
72
73}
addTopAction(string $key, TopAction $action, ?RoundTrip $modal=null)