‪TYPO3CMS  ‪main
TYPO3\CMS\Opendocs\Controller\OpenDocumentController Class Reference

Public Member Functions

 __construct (protected readonly OpenDocumentService $documents, protected readonly OpendocsToolbarItem $toolbarItem)
 
 renderMenu (ServerRequestInterface $request)
 
 closeDocument (ServerRequestInterface $request)
 

Detailed Description

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.

Definition at line 34 of file OpenDocumentController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Opendocs\Controller\OpenDocumentController::__construct ( protected readonly OpenDocumentService  $documents,
protected readonly OpendocsToolbarItem  $toolbarItem 
)

Definition at line 36 of file OpenDocumentController.php.

Member Function Documentation

◆ closeDocument()

TYPO3\CMS\Opendocs\Controller\OpenDocumentController::closeDocument ( ServerRequestInterface  $request)

Closes a document and returns the updated menu.

Definition at line 53 of file OpenDocumentController.php.

References TYPO3\CMS\Webhooks\Message\$identifier, and TYPO3\CMS\Opendocs\Controller\OpenDocumentController\renderMenu().

◆ renderMenu()

TYPO3\CMS\Opendocs\Controller\OpenDocumentController::renderMenu ( ServerRequestInterface  $request)

Renders the menu so that it can be returned as response to an AJAX call.

Definition at line 44 of file OpenDocumentController.php.

Referenced by TYPO3\CMS\Opendocs\Controller\OpenDocumentController\closeDocument().