‪TYPO3CMS  9.5
TYPO3\CMS\Backend\Controller\ShortcutController Class Reference

Public Member Functions

 __construct ()
 
ResponseInterface menuAction ()
 
ResponseInterface addAction (ServerRequestInterface $request)
 
ResponseInterface showEditFormAction (ServerRequestInterface $request)
 
ResponseInterface updateAction (ServerRequestInterface $request)
 
ResponseInterface removeAction (ServerRequestInterface $request)
 

Protected Member Functions

StandaloneView getFluidTemplateObject (string $templateFilename)
 
BackendUserAuthentication getBackendUser ()
 
LanguageService getLanguageService ()
 

Protected Attributes

ShortcutToolbarItem $shortcutToolbarItem
 
ShortcutRepository $shortcutRepository
 
ModuleLoader $moduleLoader
 

Detailed Description

Controller for shortcut processing

This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.

Definition at line 34 of file ShortcutController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\ShortcutController::__construct ( )

Set up dependencies

Definition at line 51 of file ShortcutController.php.

References $GLOBALS.

Member Function Documentation

◆ addAction()

ResponseInterface TYPO3\CMS\Backend\Controller\ShortcutController::addAction ( ServerRequestInterface  $request)

Creates a shortcut through an AJAX call

Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface

Definition at line 76 of file ShortcutController.php.

◆ getBackendUser()

BackendUserAuthentication TYPO3\CMS\Backend\Controller\ShortcutController::getBackendUser ( )
protected
Returns
‪BackendUserAuthentication

Definition at line 184 of file ShortcutController.php.

References $GLOBALS.

◆ getFluidTemplateObject()

StandaloneView TYPO3\CMS\Backend\Controller\ShortcutController::getFluidTemplateObject ( string  $templateFilename)
protected

returns a new standalone view, shorthand function

Parameters
string$templateFilename
Returns
‪StandaloneView
Exceptions

Definition at line 169 of file ShortcutController.php.

Referenced by TYPO3\CMS\Backend\Controller\ShortcutController\showEditFormAction().

◆ getLanguageService()

LanguageService TYPO3\CMS\Backend\Controller\ShortcutController::getLanguageService ( )
protected
Returns
‪LanguageService

Definition at line 192 of file ShortcutController.php.

References $GLOBALS.

◆ menuAction()

ResponseInterface TYPO3\CMS\Backend\Controller\ShortcutController::menuAction ( )

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

Returns
‪ResponseInterface

Definition at line 65 of file ShortcutController.php.

◆ removeAction()

ResponseInterface TYPO3\CMS\Backend\Controller\ShortcutController::removeAction ( ServerRequestInterface  $request)

Deletes a shortcut through an AJAX call

Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface

Definition at line 150 of file ShortcutController.php.

◆ showEditFormAction()

ResponseInterface TYPO3\CMS\Backend\Controller\ShortcutController::showEditFormAction ( ServerRequestInterface  $request)

Fetches the available shortcut groups, renders a form so it can be saved later on, called via AJAX

Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface the full HTML for the form

Definition at line 105 of file ShortcutController.php.

References TYPO3\CMS\Backend\Controller\ShortcutController\getFluidTemplateObject().

◆ updateAction()

ResponseInterface TYPO3\CMS\Backend\Controller\ShortcutController::updateAction ( ServerRequestInterface  $request)

Gets called when a shortcut is changed, checks whether the user has permissions to do so and saves the changes if everything is ok

Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface

Definition at line 131 of file ShortcutController.php.

Member Data Documentation

◆ $moduleLoader

ModuleLoader TYPO3\CMS\Backend\Controller\ShortcutController::$moduleLoader
protected

Definition at line 46 of file ShortcutController.php.

◆ $shortcutRepository

ShortcutRepository TYPO3\CMS\Backend\Controller\ShortcutController::$shortcutRepository
protected

Definition at line 42 of file ShortcutController.php.

◆ $shortcutToolbarItem

ShortcutToolbarItem TYPO3\CMS\Backend\Controller\ShortcutController::$shortcutToolbarItem
protected

Definition at line 38 of file ShortcutController.php.