‪TYPO3CMS  11.5
TYPO3\CMS\Beuser\Controller\BackendUserController Class Reference
Inheritance diagram for TYPO3\CMS\Beuser\Controller\BackendUserController:
TYPO3\CMS\Extbase\Mvc\Controller\ActionController TYPO3\CMS\Extbase\Mvc\Controller\ControllerInterface

Public Member Functions

 __construct (BackendUserRepository $backendUserRepository, BackendUserGroupRepository $backendUserGroupRepository, BackendUserSessionRepository $backendUserSessionRepository, UserInformationService $userInformationService, ModuleTemplateFactory $moduleTemplateFactory, BackendUriBuilder $backendUriBuilder, IconFactory $iconFactory, PageRenderer $pageRenderer)
 
ResponseInterface processRequest (RequestInterface $request)
 
 initializeAction ()
 
ResponseInterface indexAction (?Demand $demand=null, int $currentPage=1, string $operation='')
 
 onlineAction ()
 
 showAction (int $uid=0)
 
 compareAction ()
 
 initiatePasswordResetAction (int $user)
 
 addToCompareListAction ($uid)
 
 removeFromCompareListAction ($uid, int $redirectToCompare=0)
 
 removeAllFromCompareListAction ()
 
ResponseInterface groupsAction (int $currentPage=1)
 
 compareGroupsAction ()
 
 addGroupToCompareListAction (int $uid)
 
 removeGroupFromCompareListAction (int $uid, int $redirectToCompare=0)
 
 removeAllGroupsFromCompareListAction ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 injectResponseFactory (ResponseFactoryInterface $responseFactory)
 
 injectStreamFactory (StreamFactoryInterface $streamFactory)
 
 injectConfigurationManager (ConfigurationManagerInterface $configurationManager)
 
 injectObjectManager (ObjectManagerInterface $objectManager)
 
 injectSignalSlotDispatcher (Dispatcher $signalSlotDispatcher)
 
 injectValidatorResolver (ValidatorResolver $validatorResolver)
 
 injectViewResolver (ViewResolverInterface $viewResolver)
 
 injectReflectionService (ReflectionService $reflectionService)
 
 injectHashService (HashService $hashService)
 
 injectMvcPropertyMappingConfigurationService (MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService)
 
 injectEventDispatcher (EventDispatcherInterface $eventDispatcher)
 
 injectPropertyMapper (PropertyMapper $propertyMapper)
 
 injectInternalFlashMessageService (FlashMessageService $flashMessageService)
 
 injectInternalExtensionService (ExtensionService $extensionService)
 
 initializeControllerArgumentsBaseValidators ()
 
ControllerContext getControllerContext ()
 
 addFlashMessage ($messageBody, $messageTitle='', $severity=AbstractMessage::OK, $storeInSession=true)
 
never forward ($actionName, $controllerName=null, $extensionName=null, ?array $arguments=null)
 
never throwStatus ($statusCode, $statusMessage=null, $content=null)
 

Protected Member Functions

 initializeView (ViewInterface $view)
 
 terminateBackendUserSessionAction ($sessionId)
 
array getOnlineBackendUsers ()
 
 addMainMenu (string $currentAction)
 
BackendUserAuthentication getBackendUser ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 initializeActionMethodArguments ()
 
 initializeActionMethodValidators ()
 
 renderAssetsForRequest ($request)
 
string resolveActionMethodName ()
 
 callActionMethod (RequestInterface $request)
 
ViewInterface resolveView ()
 
 setViewConfiguration (ViewInterface $view)
 
array getViewProperty ($extbaseFrameworkConfiguration, $setting)
 
ResponseInterface errorAction ()
 
 addErrorFlashMessage ()
 
string bool getErrorFlashMessage ()
 
ResponseInterface null forwardToReferringRequest ()
 
string getFlattenedValidationErrorMessage ()
 
 getFlashMessageQueue (?string $identifier=null)
 
ControllerContext buildControllerContext ()
 
never redirect ($actionName, $controllerName=null, $extensionName=null, ?array $arguments=null, $pageUid=null, $_=null, $statusCode=303)
 
never redirectToUri ($uri, $_=null, $statusCode=303)
 
string addBaseUriIfNecessary ($uri)
 
 mapRequestArgumentsToControllerArguments ()
 
ResponseInterface htmlResponse (?string $html=null)
 
ResponseInterface jsonResponse (?string $json=null)
 

Protected Attributes

ModuleData $moduleData = null
 
ModuleTemplate $moduleTemplate = null
 
BackendUserRepository $backendUserRepository
 
BackendUserGroupRepository $backendUserGroupRepository
 
BackendUserSessionRepository $backendUserSessionRepository
 
UserInformationService $userInformationService
 
ModuleTemplateFactory $moduleTemplateFactory
 
BackendUriBuilder $backendUriBuilder
 
IconFactory $iconFactory
 
PageRenderer $pageRenderer
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\Mvc\Controller\ActionController
ResponseFactoryInterface $responseFactory
 
StreamFactoryInterface $streamFactory
 
TYPO3 CMS Extbase Reflection ReflectionService $reflectionService
 
HashService $hashService
 
ViewInterface $view
 
string $defaultViewObjectName = TemplateView::class
 
string $actionMethodName = 'indexAction'
 
string $errorMethodName = 'errorAction'
 
TYPO3 CMS Extbase Mvc Controller MvcPropertyMappingConfigurationService $mvcPropertyMappingConfigurationService
 
EventDispatcherInterface $eventDispatcher
 
Request $request
 
TYPO3 CMS Extbase SignalSlot Dispatcher $signalSlotDispatcher
 
ObjectManagerInterface $objectManager
 
TYPO3 CMS Extbase Mvc Web Routing UriBuilder $uriBuilder
 
array $settings
 
TYPO3 CMS Extbase Validation ValidatorResolver $validatorResolver
 
TYPO3 CMS Extbase Mvc Controller Arguments $arguments
 
ControllerContext $controllerContext
 
ConfigurationManagerInterface $configurationManager
 

Detailed Description

Backend module user and user group administration controller

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

Definition at line 53 of file BackendUserController.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ addGroupToCompareListAction()

TYPO3\CMS\Beuser\Controller\BackendUserController::addGroupToCompareListAction ( int  $uid)

Attaches one backend user group to the compare list

Parameters
int$uid

Definition at line 487 of file BackendUserController.php.

References TYPO3\CMS\Beuser\Controller\BackendUserController\getBackendUser(), and TYPO3\CMS\Extbase\Mvc\Controller\ActionController\redirect().

◆ addMainMenu()

◆ addToCompareListAction()

TYPO3\CMS\Beuser\Controller\BackendUserController::addToCompareListAction (   $uid)

Attaches one backend user to the compare list

Parameters
int$uid

Definition at line 353 of file BackendUserController.php.

References TYPO3\CMS\Beuser\Controller\BackendUserController\getBackendUser(), and TYPO3\CMS\Core\Authentication\AbstractUserAuthentication\pushModuleData().

◆ compareAction()

◆ compareGroupsAction()

◆ getBackendUser()

◆ getOnlineBackendUsers()

array TYPO3\CMS\Beuser\Controller\BackendUserController::getOnlineBackendUsers ( )
protected

Create an array with the uids of online users as the keys [ 1 => true, 5 => true ]

Returns
‪array

Definition at line 537 of file BackendUserController.php.

Referenced by TYPO3\CMS\Beuser\Controller\BackendUserController\compareAction(), and TYPO3\CMS\Beuser\Controller\BackendUserController\indexAction().

◆ groupsAction()

◆ indexAction()

ResponseInterface TYPO3\CMS\Beuser\Controller\BackendUserController::indexAction ( ?Demand  $demand = null,
int  $currentPage = 1,
string  $operation = '' 
)

◆ initializeAction()

TYPO3\CMS\Beuser\Controller\BackendUserController::initializeAction ( )

Init module state. This isn't done within __construct() since the controller object is only created once in extbase when multiple actions are called in one call. When those change module state, the second action would see old state.

Reimplemented from TYPO3\CMS\Extbase\Mvc\Controller\ActionController.

Definition at line 117 of file BackendUserController.php.

References TYPO3\CMS\Beuser\Domain\Model\ModuleData\fromUc(), TYPO3\CMS\Beuser\Controller\BackendUserController\getBackendUser(), and TYPO3\CMS\Extbase\Utility\LocalizationUtility\translate().

◆ initializeView()

TYPO3\CMS\Beuser\Controller\BackendUserController::initializeView ( ViewInterface  $view)
protected

Assign default variables to view

Parameters
ViewInterface$view
Todo:
‪v12: Change signature to TYPO3Fluid\Fluid\View\ViewInterface when extbase ViewInterface is dropped.

Reimplemented from TYPO3\CMS\Extbase\Mvc\Controller\ActionController.

Definition at line 129 of file BackendUserController.php.

References $GLOBALS, TYPO3\CMS\Extbase\Mvc\Controller\ActionController\$view, and TYPO3\CMS\Extbase\Mvc\View\ViewInterface\assignMultiple().

◆ initiatePasswordResetAction()

TYPO3\CMS\Beuser\Controller\BackendUserController::initiatePasswordResetAction ( int  $user)

◆ onlineAction()

◆ processRequest()

ResponseInterface TYPO3\CMS\Beuser\Controller\BackendUserController::processRequest ( RequestInterface  $request)

◆ removeAllFromCompareListAction()

TYPO3\CMS\Beuser\Controller\BackendUserController::removeAllFromCompareListAction ( )

◆ removeAllGroupsFromCompareListAction()

TYPO3\CMS\Beuser\Controller\BackendUserController::removeAllGroupsFromCompareListAction ( )

Removes all backend user groups from the compare list

Definition at line 521 of file BackendUserController.php.

References TYPO3\CMS\Beuser\Controller\BackendUserController\getBackendUser(), and TYPO3\CMS\Extbase\Mvc\Controller\ActionController\redirect().

◆ removeFromCompareListAction()

TYPO3\CMS\Beuser\Controller\BackendUserController::removeFromCompareListAction (   $uid,
int  $redirectToCompare = 0 
)

◆ removeGroupFromCompareListAction()

TYPO3\CMS\Beuser\Controller\BackendUserController::removeGroupFromCompareListAction ( int  $uid,
int  $redirectToCompare = 0 
)

Removes given backend user group to the compare list

Parameters
int$uid
int$redirectToCompare

Definition at line 503 of file BackendUserController.php.

References TYPO3\CMS\Beuser\Controller\BackendUserController\getBackendUser(), and TYPO3\CMS\Extbase\Mvc\Controller\ActionController\redirect().

◆ showAction()

◆ terminateBackendUserSessionAction()

TYPO3\CMS\Beuser\Controller\BackendUserController::terminateBackendUserSessionAction (   $sessionId)
protected

Terminate BackendUser session and logout corresponding client Redirects to onlineAction with message

Parameters
string$sessionId

Definition at line 394 of file BackendUserController.php.

References TYPO3\CMS\Extbase\Mvc\Controller\ActionController\addFlashMessage(), and TYPO3\CMS\Extbase\Utility\LocalizationUtility\translate().

Member Data Documentation

◆ $backendUriBuilder

BackendUriBuilder TYPO3\CMS\Beuser\Controller\BackendUserController::$backendUriBuilder
protected

◆ $backendUserGroupRepository

BackendUserGroupRepository TYPO3\CMS\Beuser\Controller\BackendUserController::$backendUserGroupRepository
protected

◆ $backendUserRepository

BackendUserRepository TYPO3\CMS\Beuser\Controller\BackendUserController::$backendUserRepository
protected

◆ $backendUserSessionRepository

BackendUserSessionRepository TYPO3\CMS\Beuser\Controller\BackendUserController::$backendUserSessionRepository
protected

◆ $iconFactory

IconFactory TYPO3\CMS\Beuser\Controller\BackendUserController::$iconFactory
protected

◆ $moduleData

ModuleData TYPO3\CMS\Beuser\Controller\BackendUserController::$moduleData = null
protected

Definition at line 55 of file BackendUserController.php.

◆ $moduleTemplate

ModuleTemplate TYPO3\CMS\Beuser\Controller\BackendUserController::$moduleTemplate = null
protected

Definition at line 56 of file BackendUserController.php.

◆ $moduleTemplateFactory

ModuleTemplateFactory TYPO3\CMS\Beuser\Controller\BackendUserController::$moduleTemplateFactory
protected

◆ $pageRenderer

PageRenderer TYPO3\CMS\Beuser\Controller\BackendUserController::$pageRenderer
protected

◆ $userInformationService

UserInformationService TYPO3\CMS\Beuser\Controller\BackendUserController::$userInformationService
protected