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.
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.
Properties
$documents read-only
protected
OpenDocumentService
$documents
$toolbarItem read-only
protected
OpendocsToolbarItem
$toolbarItem
Methods
__construct()
public
__construct(OpenDocumentService $documents, OpendocsToolbarItem $toolbarItem) : mixed
Parameters
- $documents : OpenDocumentService
- $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