SwitchUserController

class \TYPO3\CMS\Backend\Controller\SwitchUserController

Attributes

#[AsController]

Table of Contents

Constants

RECENT_USERS_LIMIT  : mixed = 3

Properties

$eventDispatcher  : EventDispatcherInterface
$responseFactory  : ResponseFactoryInterface
$sessionBackend  : SessionBackendInterface
$uriBuilder  : UriBuilder

Methods

__construct()  : mixed
exitSwitchUserAction()  : ResponseInterface
Handle exiting the switch user mode
switchUserAction()  : ResponseInterface
Handle switching current user to the requested target user
generateListOfMostRecentSwitchedUsers()  : int[]
Generates a list of users to whom where switched in the past. This is limited by RECENT_USERS_LIMIT.
getBackendUserAuthentication()  : BackendUserAuthentication
jsonResponse()  : ResponseInterface

Constants

RECENT_USERS_LIMIT

protected mixed RECENT_USERS_LIMIT = 3

Properties

$eventDispatcher

protected EventDispatcherInterface $eventDispatcher

$responseFactory

protected ResponseFactoryInterface $responseFactory

Methods

__construct()

public __construct(EventDispatcherInterface $eventDispatcher, UriBuilder $uriBuilder, ResponseFactoryInterface $responseFactory) : mixed

Parameters

$eventDispatcher : EventDispatcherInterface
$uriBuilder : UriBuilder
$responseFactory : ResponseFactoryInterface

exitSwitchUserAction()

Handle exiting the switch user mode

public exitSwitchUserAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

switchUserAction()

Handle switching current user to the requested target user

public switchUserAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

Return values

ResponseInterface

generateListOfMostRecentSwitchedUsers()

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

protected generateListOfMostRecentSwitchedUsers(int $targetUserUid) : int[]

Parameters

$targetUserUid : int

Return values

int[]

jsonResponse()

protected jsonResponse(array $data) : ResponseInterface

Parameters

$data : array

Return values

ResponseInterface
On this page