OpenDocumentController
Controller for documents processing.
Contains AJAX endpoints of the open docs toolbar item click actions.
This class is a specific Backend controller implementation and is not part of the TYPO3's Core API.
Attributes
- #[AsController]
Table of Contents
Properties
Methods
- __construct() : mixed
- closeDocument() : ResponseInterface
- Closes a document and returns the updated menu.
- renderMenu() : ResponseInterface
- Renders the menu so that it can be returned as response to an AJAX call.
- getBackendUser() : BackendUserAuthentication
Properties
$openDocumentRepository read-only
protected
OpenDocumentRepository
$openDocumentRepository
$toolbarItem read-only
protected
OpendocsToolbarItem
$toolbarItem
Methods
__construct()
public
__construct(OpenDocumentRepository $openDocumentRepository, OpendocsToolbarItem $toolbarItem) : mixed
Parameters
- $openDocumentRepository : OpenDocumentRepository
- $toolbarItem : OpendocsToolbarItem
closeDocument()
Closes a document and returns the updated menu.
public
closeDocument(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacerenderMenu()
Renders the menu so that it can be returned as response to an AJAX call.
public
renderMenu(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacegetBackendUser()
protected
getBackendUser() : BackendUserAuthentication