ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ActionRepository.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\WOPI\Discovery;
22
27{
28 public function hasEditActionForSuffix(
29 string $suffix
30 ): bool;
31
32 public function hasViewActionForSuffix(
33 string $suffix
34 ): bool;
35
36 public function hasActionForSuffix(
37 string $suffix,
38 ActionTarget ...$action_target
39 ): bool;
40
41 public function getActionForSuffix(
42 string $suffix,
43 ActionTarget $action_target
44 ): ?Action;
45
46 public function getEditActionForSuffix(
47 string $suffix
48 ): ?Action;
49
50 public function getViewActionForSuffix(
51 string $suffix
52 ): ?Action;
53
57 public function getActions(): array;
58
62 public function getActionsForTarget(ActionTarget $action_target): array;
63 public function getActionsForTargets(ActionTarget ...$action_target): array;
64
65 public function getSupportedSuffixes(ActionTarget ...$action_target): array;
66
67 public function clearSuperfluous(Action ...$actions): void;
68
69 public function store(Action $action, App $for_app): void;
70
71 public function clear(): void;
72}
getActionsForTargets(ActionTarget ... $action_target)
store(Action $action, App $for_app)
clearSuperfluous(Action ... $actions)
getActionsForTarget(ActionTarget $action_target)
hasActionForSuffix(string $suffix, ActionTarget ... $action_target)
getSupportedSuffixes(ActionTarget ... $action_target)
getActionForSuffix(string $suffix, ActionTarget $action_target)
ActionTarget
Officialy supported action targets, see https://learn.microsoft.com/en-us/openspecs/office_protocols/...