‪TYPO3CMS  10.4
TYPO3\CMS\Setup\Controller\SetupModuleController Class Reference

Public Member Functions

 __construct (EventDispatcherInterface $eventDispatcher)
 
ResponseInterface mainAction (ServerRequestInterface $request)
 
string renderLanguageSelect ()
 
string renderStartModuleSelect ()
 

Public Attributes

const PASSWORD_NOT_UPDATED = 0
 
const PASSWORD_UPDATED = 1
 
const PASSWORD_NOT_THE_SAME = 2
 
const PASSWORD_OLD_WRONG = 3
 

Protected Member Functions

 processAdditionalJavaScriptModules (PageRenderer $pageRenderer)
 
 initialize ()
 
 storeIncomingData (array $postData)
 
string getJavaScript ()
 
 buildInstructionDataTag (string $dispatchAction)
 
 getButtons ()
 
array renderUserSetup ()
 
bool checkAccess (array $config)
 
string getLabel ($str, $key='', $addLabelTag=true)
 
string getCSH ($str, $label, $fieldName)
 
string[] getFieldsFromShowItem ()
 
int getAvatarFileUid ($beUserId)
 
 setAvatarFileUid ($beUserId, $fileUid, array &$storeRec)
 
BackendUserAuthentication getBackendUser ()
 
LanguageService getLanguageService ()
 
 addFlashMessages ()
 
 enqueueFlashMessages (array $flashMessages)
 
FlashMessage getFlashMessage ($message, $title, $severity=FlashMessage::OK)
 

Protected Attributes

string $content
 
array $overrideConf
 
bool $languageUpdate
 
bool $pagetreeNeedsRefresh = false
 
array $tsFieldConf
 
bool $saveData = false
 
int $passwordIsUpdated = self::PASSWORD_NOT_UPDATED
 
bool $passwordIsSubmitted = false
 
bool $setupIsUpdated = false
 
bool $settingsAreResetToDefault = false
 
TYPO3 CMS Core FormProtection BackendFormProtection $formProtection
 
string $moduleName = 'user_setup'
 
ModuleTemplate $moduleTemplate
 
EventDispatcherInterface $eventDispatcher
 

Detailed Description

Script class for the Setup module

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

Definition at line 54 of file SetupModuleController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Setup\Controller\SetupModuleController::__construct ( EventDispatcherInterface  $eventDispatcher)

Member Function Documentation

◆ addFlashMessages()

◆ buildInstructionDataTag()

TYPO3\CMS\Setup\Controller\SetupModuleController::buildInstructionDataTag ( string  $dispatchAction)
protected

◆ checkAccess()

bool TYPO3\CMS\Setup\Controller\SetupModuleController::checkAccess ( array  $config)
protected

Returns access check (currently only "admin" is supported)

Parameters
array$config‪Configuration of the field, access mode is defined in key 'access'
Returns
‪bool Whether it is allowed to modify the given field

Definition at line 747 of file SetupModuleController.php.

References $GLOBALS, TYPO3\CMS\Setup\Controller\SetupModuleController\getBackendUser(), and TYPO3\CMS\Core\Authentication\BackendUserAuthentication\isAdmin().

Referenced by TYPO3\CMS\Setup\Controller\SetupModuleController\renderUserSetup(), and TYPO3\CMS\Setup\Controller\SetupModuleController\storeIncomingData().

◆ enqueueFlashMessages()

TYPO3\CMS\Setup\Controller\SetupModuleController::enqueueFlashMessages ( array  $flashMessages)
protected
Parameters
array$flashMessages
Exceptions

Definition at line 1040 of file SetupModuleController.php.

Referenced by TYPO3\CMS\Setup\Controller\SetupModuleController\addFlashMessages().

◆ getAvatarFileUid()

int TYPO3\CMS\Setup\Controller\SetupModuleController::getAvatarFileUid (   $beUserId)
protected

Get Avatar fileUid

Parameters
int$beUserId
Returns
‪int

Definition at line 867 of file SetupModuleController.php.

Referenced by TYPO3\CMS\Setup\Controller\SetupModuleController\renderUserSetup(), and TYPO3\CMS\Setup\Controller\SetupModuleController\setAvatarFileUid().

◆ getBackendUser()

◆ getButtons()

TYPO3\CMS\Setup\Controller\SetupModuleController::getButtons ( )
protected

Create the panel of buttons for submitting the form or otherwise perform operations.

Definition at line 402 of file SetupModuleController.php.

References TYPO3\CMS\Setup\Controller\SetupModuleController\getLanguageService(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Setup\Controller\SetupModuleController\mainAction().

◆ getCSH()

string TYPO3\CMS\Setup\Controller\SetupModuleController::getCSH (   $str,
  $label,
  $fieldName 
)
protected

Returns the CSH Icon for given string

Parameters
string$str‪Locallang key
string$label‪The label to be used, that should be wrapped in help
string$fieldName‪field name
Returns
‪string HTML output.

Definition at line 797 of file SetupModuleController.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\wrapInHelp().

Referenced by TYPO3\CMS\Setup\Controller\SetupModuleController\renderUserSetup().

◆ getFieldsFromShowItem()

string [] TYPO3\CMS\Setup\Controller\SetupModuleController::getFieldsFromShowItem ( )
protected

Returns array with fields defined in $GLOBALS['TYPO3_USER_SETTINGS']['showitem'] Remove fields which are disabled by user TSconfig

Returns
‪string[] Array with field names visible in form

Definition at line 818 of file SetupModuleController.php.

References $GLOBALS, TYPO3\CMS\Setup\Controller\SetupModuleController\getBackendUser(), if, and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Referenced by TYPO3\CMS\Setup\Controller\SetupModuleController\renderUserSetup(), and TYPO3\CMS\Setup\Controller\SetupModuleController\storeIncomingData().

◆ getFlashMessage()

FlashMessage TYPO3\CMS\Setup\Controller\SetupModuleController::getFlashMessage (   $message,
  $title,
  $severity = FlashMessage::OK 
)
protected

◆ getJavaScript()

string TYPO3\CMS\Setup\Controller\SetupModuleController::getJavaScript ( )
protected

Generate necessary JavaScript

Returns
‪string

Definition at line 331 of file SetupModuleController.php.

References $GLOBALS.

◆ getLabel()

string TYPO3\CMS\Setup\Controller\SetupModuleController::getLabel (   $str,
  $key = '',
  $addLabelTag = true 
)
protected

Returns the label $str from getLL() and grays out the value if the $str/$key is found in $this->overrideConf array

Parameters
string$str‪Locallang key
string$key‪Alternative override-config key
bool$addLabelTag‪Defines whether the string should be wrapped in a <label> tag.
Returns
‪string HTML output.

Definition at line 773 of file SetupModuleController.php.

References TYPO3\CMS\Setup\Controller\SetupModuleController\getLanguageService().

Referenced by TYPO3\CMS\Setup\Controller\SetupModuleController\renderUserSetup().

◆ getLanguageService()

◆ initialize()

◆ mainAction()

◆ processAdditionalJavaScriptModules()

TYPO3\CMS\Setup\Controller\SetupModuleController::processAdditionalJavaScriptModules ( PageRenderer  $pageRenderer)
protected

◆ renderLanguageSelect()

string TYPO3\CMS\Setup\Controller\SetupModuleController::renderLanguageSelect ( )

Return a select with available languages. This method is called from the setup module fake TCA userFunc.

Returns
‪string Complete select as HTML string or warning box if something went wrong.

Definition at line 664 of file SetupModuleController.php.

References $GLOBALS, $locales, TYPO3\CMS\Setup\Controller\SetupModuleController\getBackendUser(), TYPO3\CMS\Core\Core\Environment\getLabelsPath(), and TYPO3\CMS\Setup\Controller\SetupModuleController\getLanguageService().

◆ renderStartModuleSelect()

string TYPO3\CMS\Setup\Controller\SetupModuleController::renderStartModuleSelect ( )

Returns a select with all modules for startup. This method is called from the setup module fake TCA userFunc.

Returns
‪string Complete select as HTML string

Definition at line 709 of file SetupModuleController.php.

References $GLOBALS, TYPO3\CMS\Setup\Controller\SetupModuleController\getBackendUser(), and TYPO3\CMS\Setup\Controller\SetupModuleController\getLanguageService().

◆ renderUserSetup()

◆ setAvatarFileUid()

TYPO3\CMS\Setup\Controller\SetupModuleController::setAvatarFileUid (   $beUserId,
  $fileUid,
array &  $storeRec 
)
protected

Set avatar fileUid for backend user

Parameters
int$beUserId
int$fileUid
array$storeRec

Definition at line 903 of file SetupModuleController.php.

References TYPO3\CMS\Setup\Controller\SetupModuleController\getAvatarFileUid().

Referenced by TYPO3\CMS\Setup\Controller\SetupModuleController\storeIncomingData().

◆ storeIncomingData()

Member Data Documentation

◆ $content

string TYPO3\CMS\Setup\Controller\SetupModuleController::$content
protected

Definition at line 80 of file SetupModuleController.php.

◆ $eventDispatcher

EventDispatcherInterface TYPO3\CMS\Setup\Controller\SetupModuleController::$eventDispatcher
protected

◆ $formProtection

TYPO3 CMS Core FormProtection BackendFormProtection TYPO3\CMS\Setup\Controller\SetupModuleController::$formProtection
protected

Form protection instance

Definition at line 122 of file SetupModuleController.php.

◆ $languageUpdate

bool TYPO3\CMS\Setup\Controller\SetupModuleController::$languageUpdate
protected

Definition at line 88 of file SetupModuleController.php.

◆ $moduleName

string TYPO3\CMS\Setup\Controller\SetupModuleController::$moduleName = 'user_setup'
protected

◆ $moduleTemplate

ModuleTemplate TYPO3\CMS\Setup\Controller\SetupModuleController::$moduleTemplate
protected

ModuleTemplate object

Definition at line 134 of file SetupModuleController.php.

◆ $overrideConf

array TYPO3\CMS\Setup\Controller\SetupModuleController::$overrideConf
protected

Definition at line 84 of file SetupModuleController.php.

◆ $pagetreeNeedsRefresh

bool TYPO3\CMS\Setup\Controller\SetupModuleController::$pagetreeNeedsRefresh = false
protected

Definition at line 92 of file SetupModuleController.php.

◆ $passwordIsSubmitted

bool TYPO3\CMS\Setup\Controller\SetupModuleController::$passwordIsSubmitted = false
protected

Definition at line 108 of file SetupModuleController.php.

◆ $passwordIsUpdated

int TYPO3\CMS\Setup\Controller\SetupModuleController::$passwordIsUpdated = self::PASSWORD_NOT_UPDATED
protected

Definition at line 104 of file SetupModuleController.php.

◆ $saveData

bool TYPO3\CMS\Setup\Controller\SetupModuleController::$saveData = false
protected

Definition at line 100 of file SetupModuleController.php.

◆ $settingsAreResetToDefault

bool TYPO3\CMS\Setup\Controller\SetupModuleController::$settingsAreResetToDefault = false
protected

Definition at line 116 of file SetupModuleController.php.

◆ $setupIsUpdated

bool TYPO3\CMS\Setup\Controller\SetupModuleController::$setupIsUpdated = false
protected

Definition at line 112 of file SetupModuleController.php.

◆ $tsFieldConf

array TYPO3\CMS\Setup\Controller\SetupModuleController::$tsFieldConf
protected

Definition at line 96 of file SetupModuleController.php.

◆ PASSWORD_NOT_THE_SAME

◆ PASSWORD_NOT_UPDATED

const TYPO3\CMS\Setup\Controller\SetupModuleController::PASSWORD_NOT_UPDATED = 0

Flag if password has not been updated

Definition at line 60 of file SetupModuleController.php.

◆ PASSWORD_OLD_WRONG

const TYPO3\CMS\Setup\Controller\SetupModuleController::PASSWORD_OLD_WRONG = 3

◆ PASSWORD_UPDATED