‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Controller\SwitchUserController Class Reference

Public Member Functions

 __construct (EventDispatcherInterface $eventDispatcher, UriBuilder $uriBuilder, ResponseFactoryInterface $responseFactory)
 
 switchUserAction (ServerRequestInterface $request)
 
 exitSwitchUserAction (ServerRequestInterface $request)
 

Protected Member Functions

int[] generateListOfMostRecentSwitchedUsers (int $targetUserUid)
 
 jsonResponse (array $data)
 
 getBackendUserAuthentication ()
 

Protected Attributes

const RECENT_USERS_LIMIT = 3
 
EventDispatcherInterface $eventDispatcher
 
UriBuilder $uriBuilder
 
ResponseFactoryInterface $responseFactory
 
SessionBackendInterface $sessionBackend
 

Detailed Description

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

Definition at line 39 of file SwitchUserController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\SwitchUserController::__construct ( EventDispatcherInterface  $eventDispatcher,
UriBuilder  $uriBuilder,
ResponseFactoryInterface  $responseFactory 
)

Member Function Documentation

◆ exitSwitchUserAction()

TYPO3\CMS\Backend\Controller\SwitchUserController::exitSwitchUserAction ( ServerRequestInterface  $request)

◆ generateListOfMostRecentSwitchedUsers()

int [] TYPO3\CMS\Backend\Controller\SwitchUserController::generateListOfMostRecentSwitchedUsers ( int  $targetUserUid)
protected

Generates a list of users to whom where switched in the past. This is limited by RECENT_USERS_LIMIT.

Returns
‪int[]

Definition at line 146 of file SwitchUserController.php.

References TYPO3\CMS\Backend\Controller\SwitchUserController\getBackendUserAuthentication().

Referenced by TYPO3\CMS\Backend\Controller\SwitchUserController\switchUserAction().

◆ getBackendUserAuthentication()

◆ jsonResponse()

TYPO3\CMS\Backend\Controller\SwitchUserController::jsonResponse ( array  $data)
protected

◆ switchUserAction()

Member Data Documentation

◆ $eventDispatcher

EventDispatcherInterface TYPO3\CMS\Backend\Controller\SwitchUserController::$eventDispatcher
protected

◆ $responseFactory

ResponseFactoryInterface TYPO3\CMS\Backend\Controller\SwitchUserController::$responseFactory
protected

◆ $sessionBackend

SessionBackendInterface TYPO3\CMS\Backend\Controller\SwitchUserController::$sessionBackend
protected

Definition at line 46 of file SwitchUserController.php.

◆ $uriBuilder

UriBuilder TYPO3\CMS\Backend\Controller\SwitchUserController::$uriBuilder
protected

◆ RECENT_USERS_LIMIT

const TYPO3\CMS\Backend\Controller\SwitchUserController::RECENT_USERS_LIMIT = 3
protected

Definition at line 41 of file SwitchUserController.php.