TYPO3 CMS  TYPO3_7-6
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

Definition at line 25 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 52 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 35 of file SwitchBackUserHook.php.

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