TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Beuser\Hook\SwitchBackUserHook Class Reference

Public Member Functions

 switchBack ($params, AbstractUserAuthentication $authentication)
 

Protected Member Functions

 isAHandledBackendSession (AbstractUserAuthentication $authentication)
 

Detailed Description

Backend user switchback, for logoff_pre_processing hook within class

Author
Kasper Skårhøj (kaspe.nosp@m.rYYY.nosp@m.Y@typ.nosp@m.o3.c.nosp@m.om)
Sebastian Kurfürst sebas.nosp@m.tian.nosp@m.@garb.nosp@m.age-.nosp@m.group.nosp@m..de
Felix Kopp felix.nosp@m.-sou.nosp@m.rce@p.nosp@m.hora.nosp@m.x.com
Pascal Dürsteler pasca.nosp@m.l@no.nosp@m.tionl.nosp@m.ab.c.nosp@m.h

Definition at line 28 of file SwitchBackUserHook.php.

Member Function Documentation

◆ isAHandledBackendSession()

TYPO3\CMS\Beuser\Hook\SwitchBackUserHook::isAHandledBackendSession ( AbstractUserAuthentication  $authentication)
protected

Check if the given authentication object is a backend session and contains all necessary information to allow switching.

Parameters
AbstractUserAuthentication$authentication
Returns
bool

Definition at line 54 of file SwitchBackUserHook.php.

Referenced by TYPO3\CMS\Beuser\Hook\SwitchBackUserHook\switchBack().

◆ switchBack()

TYPO3\CMS\Beuser\Hook\SwitchBackUserHook::switchBack (   $params,
AbstractUserAuthentication  $authentication 
)

Switch backend user session.

Parameters
array$params
AbstractUserAuthentication$authentication
See also
AbstractUserAuthentication
Returns
void

Definition at line 38 of file SwitchBackUserHook.php.

References $GLOBALS, TYPO3\CMS\Beuser\Hook\SwitchBackUserHook\isAHandledBackendSession(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), and TYPO3\CMS\Core\Utility\HttpUtility\redirect().