TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
BackendUserSessionRepository Class Reference
Inheritance diagram for BackendUserSessionRepository:
Repository RepositoryInterface SingletonInterface

Public Member Functions

 findAllActive ()
 
 findByBackendUser (BackendUser $backendUser)
 
 switchBackToOriginalUser (AbstractUserAuthentication $authentication)
 
- Public Member Functions inherited from Repository
 injectPersistenceManager (\TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface $persistenceManager)
 
 __construct (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 add ($object)
 
 remove ($object)
 
 update ($modifiedObject)
 
 findAll ()
 
 countAll ()
 
 removeAll ()
 
 findByUid ($uid)
 
 findByIdentifier ($identifier)
 
 setDefaultOrderings (array $defaultOrderings)
 
 setDefaultQuerySettings (\TYPO3\CMS\Extbase\Persistence\Generic\QuerySettingsInterface $defaultQuerySettings)
 
 createQuery ()
 
 __call ($methodName, $arguments)
 

Additional Inherited Members

- Protected Member Functions inherited from Repository
 getRepositoryClassName ()
 
- Protected Attributes inherited from Repository
 $persistenceManager
 
 $objectManager
 
 $objectType
 
 $defaultOrderings = []
 
 $defaultQuerySettings = null
 

Detailed Description

Repository for

Definition at line 26 of file BackendUserSessionRepository.php.

Member Function Documentation

findAllActive ( )

Find all active sessions for all backend users

Returns
array|NULL Array of rows, or NULL in case of SQL error

Definition at line 33 of file BackendUserSessionRepository.php.

References GeneralUtility\makeInstance().

findByBackendUser ( BackendUser  $backendUser)

Find Sessions for specific BackendUser Delivers an Array, not an ObjectStorage!

Parameters
BackendUser$backendUser
Returns
array

Definition at line 50 of file BackendUserSessionRepository.php.

References AbstractDomainObject\getUid(), and GeneralUtility\makeInstance().

switchBackToOriginalUser ( AbstractUserAuthentication  $authentication)

Update current session to move back to the original user.

Parameters
AbstractUserAuthentication$authentication
Returns
void

Definition at line 73 of file BackendUserSessionRepository.php.

References $GLOBALS, BackendUserAuthentication\getCookieName(), and GeneralUtility\makeInstance().