ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
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
70 public function getCreatableSuffixes(bool $with_templates = false): array;
71
75 public function getCreatableFormats(bool $with_templates = false): array;
76
80 public function getTemplateSuffixes(): array;
81
82 public function clearSuperfluous(Action ...$actions): void;
83
84 public function store(Action $action, App $for_app): void;
85
86 public function clear(): void;
87}
getActionsForTargets(ActionTarget ... $action_target)
store(Action $action, App $for_app)
clearSuperfluous(Action ... $actions)
getActionsForTarget(ActionTarget $action_target)
getCreatableSuffixes(bool $with_templates=false)
hasActionForSuffix(string $suffix, ActionTarget ... $action_target)
getSupportedSuffixes(ActionTarget ... $action_target)
getActionForSuffix(string $suffix, ActionTarget $action_target)
getCreatableFormats(bool $with_templates=false)
ActionTarget
Officialy supported action targets, see https://learn.microsoft.com/en-us/openspecs/office_protocols/...