|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Inheritance diagram for ILIAS\WOPI\Discovery\ActionDBRepository:
Collaboration diagram for ILIAS\WOPI\Discovery\ActionDBRepository:Public Member Functions | |
| __construct (private \ilDBInterface $db) | |
| hasActionForSuffix (string $suffix, ActionTarget ... $action_target) | |
| hasEditActionForSuffix (string $suffix) | |
| hasViewActionForSuffix (string $suffix) | |
| getActionForSuffix (string $suffix, ActionTarget $action_target) | |
| getEditActionForSuffix (string $suffix) | |
| getViewActionForSuffix (string $suffix) | |
| getActions () | |
| getActionsForTarget (ActionTarget $action_target) | |
| getActionsForTargets (ActionTarget ... $action_target) | |
| getSupportedSuffixes (ActionTarget ... $action_target) | |
| getCreatableSuffixes (bool $with_templates=false) | |
| Templates such as dotx are left out unless asked for: the editnew action of a template creates a file with another extension (newext). More... | |
| getCreatableFormats (bool $with_templates=false) | |
| getTemplateSuffixes () | |
| getActionsForApp (App $app) | |
| clear () | |
| clearSuperfluous (Action ... $actions) | |
| store (Action $action, App $for_app) | |
| hasEditActionForSuffix (string $suffix) | |
| hasViewActionForSuffix (string $suffix) | |
| hasActionForSuffix (string $suffix, ActionTarget ... $action_target) | |
| getActionForSuffix (string $suffix, ActionTarget $action_target) | |
| getEditActionForSuffix (string $suffix) | |
| getViewActionForSuffix (string $suffix) | |
| getActions () | |
| getActionsForTarget (ActionTarget $action_target) | |
| getActionsForTargets (ActionTarget ... $action_target) | |
| getSupportedSuffixes (ActionTarget ... $action_target) | |
| getCreatableSuffixes (bool $with_templates=false) | |
| getCreatableFormats (bool $with_templates=false) | |
| getTemplateSuffixes () | |
| clearSuperfluous (Action ... $actions) | |
| store (Action $action, App $for_app) | |
| clear () | |
Private Member Functions | |
| implodeTargets (ActionTarget ... $targets) | |
| getEditNewFormats () | |
| fromDBRow (array $row) | |
Private Attributes | |
| const | TABLE_NAME = 'wopi_action' |
| array | $edit_actions = [ActionTarget::EDIT, ActionTarget::EMBED_EDIT] |
| array | $view_actions = [ActionTarget::EMBED_VIEW, ActionTarget::VIEW] |
| The order is the preference order of getViewActionForSuffix(). More... | |
Definition at line 28 of file ActionDBRepository.php.
| ILIAS\WOPI\Discovery\ActionDBRepository::__construct | ( | private \ilDBInterface | $db | ) |
Definition at line 45 of file ActionDBRepository.php.
| ILIAS\WOPI\Discovery\ActionDBRepository::clear | ( | ) |
Implements ILIAS\WOPI\Discovery\ActionRepository.
Definition at line 270 of file ActionDBRepository.php.
| ILIAS\WOPI\Discovery\ActionDBRepository::clearSuperfluous | ( | Action ... | $actions | ) |
Implements ILIAS\WOPI\Discovery\ActionRepository.
Definition at line 276 of file ActionDBRepository.php.
References ILIAS\WOPI\Discovery\Action\getId().
Here is the call graph for this function:
|
private |
Definition at line 258 of file ActionDBRepository.php.
| ILIAS\WOPI\Discovery\ActionDBRepository::getActionForSuffix | ( | string | $suffix, |
| ActionTarget | $action_target | ||
| ) |
Implements ILIAS\WOPI\Discovery\ActionRepository.
Definition at line 95 of file ActionDBRepository.php.
| ILIAS\WOPI\Discovery\ActionDBRepository::getActions | ( | ) |
Implements ILIAS\WOPI\Discovery\ActionRepository.
Definition at line 134 of file ActionDBRepository.php.
| ILIAS\WOPI\Discovery\ActionDBRepository::getActionsForApp | ( | App | $app | ) |
Definition at line 247 of file ActionDBRepository.php.
References ILIAS\WOPI\Discovery\App\getId().
Here is the call graph for this function:| ILIAS\WOPI\Discovery\ActionDBRepository::getActionsForTarget | ( | ActionTarget | $action_target | ) |
Implements ILIAS\WOPI\Discovery\ActionRepository.
Definition at line 145 of file ActionDBRepository.php.
| ILIAS\WOPI\Discovery\ActionDBRepository::getActionsForTargets | ( | ActionTarget ... | $action_target | ) |
Implements ILIAS\WOPI\Discovery\ActionRepository.
Definition at line 156 of file ActionDBRepository.php.
References ILIAS\Scripts\PHPStan\$target.
| ILIAS\WOPI\Discovery\ActionDBRepository::getCreatableFormats | ( | bool | $with_templates = false | ) |
Implements ILIAS\WOPI\Discovery\ActionRepository.
Definition at line 190 of file ActionDBRepository.php.
References Vendor\Package\$a, and Vendor\Package\$b.
| ILIAS\WOPI\Discovery\ActionDBRepository::getCreatableSuffixes | ( | bool | $with_templates = false | ) |
Templates such as dotx are left out unless asked for: the editnew action of a template creates a file with another extension (newext).
Implements ILIAS\WOPI\Discovery\ActionRepository.
Definition at line 182 of file ActionDBRepository.php.
References ILIAS\UI\examples\Symbol\Glyph\Sort\sort().
Here is the call graph for this function:| ILIAS\WOPI\Discovery\ActionDBRepository::getEditActionForSuffix | ( | string | $suffix | ) |
Implements ILIAS\WOPI\Discovery\ActionRepository.
Definition at line 112 of file ActionDBRepository.php.
|
private |
Definition at line 223 of file ActionDBRepository.php.
References ILIAS\Scripts\PHPStan\$target.
| ILIAS\WOPI\Discovery\ActionDBRepository::getSupportedSuffixes | ( | ActionTarget ... | $action_target | ) |
Implements ILIAS\WOPI\Discovery\ActionRepository.
Definition at line 165 of file ActionDBRepository.php.
| ILIAS\WOPI\Discovery\ActionDBRepository::getTemplateSuffixes | ( | ) |
Implements ILIAS\WOPI\Discovery\ActionRepository.
Definition at line 206 of file ActionDBRepository.php.
References ILIAS\UI\examples\Symbol\Glyph\Sort\sort().
Here is the call graph for this function:| ILIAS\WOPI\Discovery\ActionDBRepository::getViewActionForSuffix | ( | string | $suffix | ) |
Implements ILIAS\WOPI\Discovery\ActionRepository.
Definition at line 123 of file ActionDBRepository.php.
| ILIAS\WOPI\Discovery\ActionDBRepository::hasActionForSuffix | ( | string | $suffix, |
| ActionTarget ... | $action_target | ||
| ) |
Implements ILIAS\WOPI\Discovery\ActionRepository.
Definition at line 61 of file ActionDBRepository.php.
| ILIAS\WOPI\Discovery\ActionDBRepository::hasEditActionForSuffix | ( | string | $suffix | ) |
Implements ILIAS\WOPI\Discovery\ActionRepository.
Definition at line 85 of file ActionDBRepository.php.
| ILIAS\WOPI\Discovery\ActionDBRepository::hasViewActionForSuffix | ( | string | $suffix | ) |
Implements ILIAS\WOPI\Discovery\ActionRepository.
Definition at line 90 of file ActionDBRepository.php.
|
private |
Definition at line 50 of file ActionDBRepository.php.
References ILIAS\Scripts\PHPStan\$target.
Implements ILIAS\WOPI\Discovery\ActionRepository.
Definition at line 286 of file ActionDBRepository.php.
References ILIAS\WOPI\Discovery\Action\getExtension(), ILIAS\WOPI\Discovery\Action\getId(), ILIAS\WOPI\Discovery\App\getId(), ILIAS\WOPI\Discovery\Action\getLauncherUrl(), ILIAS\WOPI\Discovery\Action\getName(), ILIAS\WOPI\Discovery\Action\getTargetExtension(), ILIAS\WOPI\Discovery\Action\getUrlAppendix(), and ILIAS\WOPI\Discovery\Action\withId().
Here is the call graph for this function:
|
private |
Definition at line 34 of file ActionDBRepository.php.
|
private |
The order is the preference order of getViewActionForSuffix().
The embedded viewer comes first on purpose: the content tab of a file object is a viewer and offers no way into edit mode, so the full viewer of the WOPI client - which advertises editing and then has to explain why it is not available - is the wrong experience here. Falls back to the regular view action where the discovery offers no embedded one.
Definition at line 43 of file ActionDBRepository.php.
|
private |
Definition at line 33 of file ActionDBRepository.php.