ILIAS  trunk Revision v11.0_alpha-1846-g895b5f47236
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ExternalActionProvider.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
26 
31 final class ExternalActionProvider implements ActionProvider
32 {
33 
37  private array $single_actions = [];
41  private array $top_actions = [];
42 
43  public function addSingleAction(string $key, SingleAction $action): void
44  {
45  $this->single_actions[$key] = $action;
46  }
47 
48  public function addTopAction(string $key, TopAction $action): void
49  {
50  $this->top_actions[$key] = $action;
51  }
52 
53  public function getTopActions(): array
54  {
55  return $this->top_actions;
56  }
57 
58  public function getSingleActions(Request $view_request): array
59  {
60  return $this->single_actions;
61  }
62 
63  public function getComponents(): array
64  {
65  return [];
66  }
67 
68 }