ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
ExternalActionProvider.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
27 
32 final class ExternalActionProvider implements ActionProvider
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  {
65  return $this->single_actions;
66  }
67 
68  public function getComponents(): array
69  {
71  }
72 
73 }
addTopAction(string $key, TopAction $action, ?RoundTrip $modal=null)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null