![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct () | |
getFormProtection () | |
init () | |
main () | |
mainAction (ServerRequestInterface $request, ResponseInterface $response) | |
printContent () | |
renderStartModuleSelect ($params, $pObj) | |
simulateUser () | |
![]() | |
__construct () | |
processRequest (ServerRequestInterface $request, ResponseInterface $response) | |
Public Attributes | |
const | PASSWORD_NOT_UPDATED = 0 |
const | PASSWORD_UPDATED = 1 |
const | PASSWORD_NOT_THE_SAME = 2 |
const | PASSWORD_OLD_WRONG = 3 |
$MOD_MENU = array() | |
$MOD_SETTINGS = array() | |
$doc | |
$content | |
$overrideConf | |
$OLD_BE_USER | |
$languageUpdate | |
Protected Member Functions | |
getJavaScript () | |
getButtons () | |
renderUserSetup () | |
getRealScriptUserObj () | |
renderSimulateUserSelectAndLabel () | |
checkAccess (array $config) | |
getLabel ($str, $key= '', $addLabelTag=true, $altLabelTagId= '') | |
getCSH ($str, $label) | |
getFieldsFromShowItem () | |
getAvatarFileUid ($beUserId) | |
setAvatarFileUid ($beUserId, $fileUid, array &$storeRec) | |
addAvatarButtonJs ($fieldName) | |
getBackendUser () | |
getLanguageService () | |
getDatabaseConnection () | |
Protected Attributes | |
$pagetreeNeedsRefresh = false | |
$isAdmin | |
$tsFieldConf | |
$saveData = false | |
$passwordIsUpdated = self::PASSWORD_NOT_UPDATED | |
$passwordIsSubmitted = false | |
$setupIsUpdated = false | |
$settingsAreResetToDefault = false | |
$formProtection | |
$simulateSelector = '' | |
$simUser = '' | |
$moduleName = 'user_setup' | |
$loadModules | |
![]() | |
$moduleTemplate | |
$request | |
Script class for the Setup module
Definition at line 36 of file SetupModuleController.php.
__construct | ( | ) |
Instantiate the form protection before a simulated user is initialized.
Definition at line 168 of file SetupModuleController.php.
References FormProtectionFactory\get().
|
protected |
Add JavaScript to for browse files button
string | $fieldName |
Definition at line 992 of file SetupModuleController.php.
References GeneralUtility\quoteJSvalue().
Referenced by SetupModuleController\renderUserSetup().
|
protected |
Returns access check (currently only "admin" is supported)
array | $config | Configuration of the field, access mode is defined in key 'access' |
Definition at line 839 of file SetupModuleController.php.
References $GLOBALS, SetupModuleController\$isAdmin, elseif, and GeneralUtility\makeInstance().
Referenced by SetupModuleController\renderUserSetup().
|
protected |
Get Avatar fileUid
int | $beUserId |
Definition at line 921 of file SetupModuleController.php.
References BackendUtility\BEenableFields(), BackendUtility\deleteClause(), and SetupModuleController\getDatabaseConnection().
Referenced by SetupModuleController\renderUserSetup(), and SetupModuleController\setAvatarFileUid().
|
protected |
Returns the current BE user.
Definition at line 1024 of file SetupModuleController.php.
References $GLOBALS.
Referenced by SetupModuleController\getRealScriptUserObj(), SetupModuleController\init(), SetupModuleController\renderStartModuleSelect(), SetupModuleController\renderUserSetup(), and SetupModuleController\simulateUser().
|
protected |
Create the panel of buttons for submitting the form or otherwise perform operations.
Definition at line 484 of file SetupModuleController.php.
References SetupModuleController\getLanguageService(), and Icon\SIZE_SMALL.
Referenced by SetupModuleController\main().
|
protected |
Returns the CSH Icon for given string
string | $str | Locallang key |
string | $label | The label to be used, that should be wrapped in help |
Definition at line 890 of file SetupModuleController.php.
References elseif, and GeneralUtility\inList().
Referenced by SetupModuleController\renderUserSetup().
|
protected |
Definition at line 1042 of file SetupModuleController.php.
References $GLOBALS.
Referenced by SetupModuleController\getAvatarFileUid(), SetupModuleController\setAvatarFileUid(), and SetupModuleController\simulateUser().
|
protected |
Returns array with fields defined in $GLOBALS['TYPO3_USER_SETTINGS']['showitem']
Definition at line 910 of file SetupModuleController.php.
References $GLOBALS, and GeneralUtility\trimExplode().
Referenced by SetupModuleController\renderUserSetup().
getFormProtection | ( | ) |
Getter for the form protection instance.
Definition at line 179 of file SetupModuleController.php.
References SetupModuleController\$formProtection.
|
protected |
Generate necessary JavaScript
Definition at line 347 of file SetupModuleController.php.
References $GLOBALS, and GeneralUtility\callUserFunction().
|
protected |
Returns the label $str from getLL() and grays out the value if the $str/$key is found in $this->overrideConf array
string | $str | Locallang key |
string | $key | Alternative override-config key |
bool | $addLabelTag | Defines whether the string should be wrapped in a <label> tag. |
string | $altLabelTagId | Alternative id for use in "for" attribute of <label> tag. By default the $str key is used prepended with "field_". |
Definition at line 867 of file SetupModuleController.php.
References SetupModuleController\getLanguageService().
Referenced by SetupModuleController\renderUserSetup().
|
protected |
Returns LanguageService
Definition at line 1034 of file SetupModuleController.php.
References $GLOBALS.
Referenced by SetupModuleController\getButtons(), SetupModuleController\getLabel(), SetupModuleController\init(), SetupModuleController\main(), SetupModuleController\renderSimulateUserSelectAndLabel(), and SetupModuleController\renderStartModuleSelect().
|
protected |
Returns the backend user object, either the global OR the $this->OLD_BE_USER which is set during simulate-user operation. Anyway: The REAL user is returned - the one logged in.
Definition at line 695 of file SetupModuleController.php.
References SetupModuleController\getBackendUser().
Referenced by SetupModuleController\init().
init | ( | ) |
Initializes the module for display of the settings form.
Definition at line 321 of file SetupModuleController.php.
References SetupModuleController\getBackendUser(), SetupModuleController\getLanguageService(), SetupModuleController\getRealScriptUserObj(), and GeneralUtility\makeInstance().
Referenced by SetupModuleController\mainAction().
main | ( | ) |
Generate the main settings form:
Definition at line 364 of file SetupModuleController.php.
References $GLOBALS, AbstractMessage\ERROR, SetupModuleController\getButtons(), SetupModuleController\getLanguageService(), AbstractMessage\INFO, GeneralUtility\makeInstance(), SetupModuleController\renderSimulateUserSelectAndLabel(), SetupModuleController\renderUserSetup(), and BackendUtility\setUpdateSignal().
Referenced by SetupModuleController\mainAction().
mainAction | ( | ServerRequestInterface | $request, |
ResponseInterface | $response | ||
) |
Injects the request object for the current request or subrequest Simply calls main() and init() and writes the content to the response
ServerRequestInterface | $request | the current request |
ResponseInterface | $response |
Definition at line 457 of file SetupModuleController.php.
References $GLOBALS, $response, MessageInterface\getBody(), SetupModuleController\init(), SetupModuleController\main(), and SetupModuleController\simulateUser().
printContent | ( | ) |
Prints the content / ends page
Definition at line 475 of file SetupModuleController.php.
References SetupModuleController\$content, and GeneralUtility\logDeprecatedFunction().
|
protected |
Render simulate user select and label
Definition at line 819 of file SetupModuleController.php.
References SetupModuleController\getLanguageService().
Referenced by SetupModuleController\main().
renderStartModuleSelect | ( | $params, | |
$pObj | |||
) |
Returns a select with all modules for startup
array | $params | |
SetupModuleController | $pObj |
Definition at line 751 of file SetupModuleController.php.
References SetupModuleController\getBackendUser(), and SetupModuleController\getLanguageService().
|
protected |
renders the data for all tabs in the user setup and returns everything that is needed with tabs and dyntab menu
Definition at line 518 of file SetupModuleController.php.
References $GLOBALS, SetupModuleController\addAvatarButtonJs(), GeneralUtility\callUserFunction(), SetupModuleController\checkAccess(), SetupModuleController\getAvatarFileUid(), SetupModuleController\getBackendUser(), SetupModuleController\getCSH(), SetupModuleController\getFieldsFromShowItem(), SetupModuleController\getLabel(), and GeneralUtility\makeInstance().
Referenced by SetupModuleController\main().
|
protected |
Set avatar fileUid for backend user
int | $beUserId | |
int | $fileUid | |
array | $storeRec |
Definition at line 940 of file SetupModuleController.php.
References $GLOBALS, SetupModuleController\getAvatarFileUid(), SetupModuleController\getDatabaseConnection(), ResourceFactory\getInstance(), and GeneralUtility\inList().
simulateUser | ( | ) |
Will make the simulate-user selector if the logged in user is administrator. It will also set the GLOBAL(!) BE_USER to the simulated user selected if any (and set $this->OLD_BE_USER to logged in user)
Definition at line 776 of file SetupModuleController.php.
References $GLOBALS, GeneralUtility\_GP(), BackendUtility\BEenableFields(), SetupModuleController\getBackendUser(), SetupModuleController\getDatabaseConnection(), BackendUtility\getUserNames(), GeneralUtility\makeInstance(), and GeneralUtility\quoteJSvalue().
Referenced by SetupModuleController\mainAction().
$content |
Definition at line 77 of file SetupModuleController.php.
Referenced by SetupModuleController\printContent().
$doc |
Definition at line 72 of file SetupModuleController.php.
|
protected |
Definition at line 141 of file SetupModuleController.php.
Referenced by SetupModuleController\getFormProtection().
|
protected |
Definition at line 104 of file SetupModuleController.php.
Referenced by SetupModuleController\checkAccess().
$languageUpdate |
Definition at line 94 of file SetupModuleController.php.
|
protected |
Definition at line 163 of file SetupModuleController.php.
$MOD_MENU = array() |
Definition at line 62 of file SetupModuleController.php.
$MOD_SETTINGS = array() |
Definition at line 67 of file SetupModuleController.php.
|
protected |
Definition at line 158 of file SetupModuleController.php.
$OLD_BE_USER |
Definition at line 89 of file SetupModuleController.php.
$overrideConf |
Definition at line 82 of file SetupModuleController.php.
|
protected |
Definition at line 99 of file SetupModuleController.php.
|
protected |
Definition at line 124 of file SetupModuleController.php.
|
protected |
Definition at line 119 of file SetupModuleController.php.
|
protected |
Definition at line 114 of file SetupModuleController.php.
|
protected |
Definition at line 134 of file SetupModuleController.php.
|
protected |
Definition at line 129 of file SetupModuleController.php.
|
protected |
Definition at line 146 of file SetupModuleController.php.
|
protected |
Definition at line 151 of file SetupModuleController.php.
|
protected |
Definition at line 109 of file SetupModuleController.php.
const PASSWORD_NOT_THE_SAME = 2 |
Flag if both new passwords do not match
Definition at line 51 of file SetupModuleController.php.
const PASSWORD_NOT_UPDATED = 0 |
Flag if password has not been updated
Definition at line 41 of file SetupModuleController.php.
const PASSWORD_OLD_WRONG = 3 |
Flag if the current password given was not identical to the real current password
Definition at line 57 of file SetupModuleController.php.
const PASSWORD_UPDATED = 1 |
Flag if password has been updated
Definition at line 46 of file SetupModuleController.php.