EditController extends AbstractWizardController
Script Class for redirecting a backend user to the editing form when an "Edit wizard" link was clicked in FormEngine somewhere
This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.
Table of Contents
Constants
- JAVASCRIPT_HELPER = 'EXT:backend/Resources/Public/JavaScript/Helper.js'
Properties
- $closeWindow : string
- HTML markup to close the open window.
- $doClose : int
- Boolean; if set, the window will be closed by JavaScript
- $P : array<string|int, mixed>
- Wizard parameters, coming from FormEngine linking to the wizard.
Methods
- __construct() : mixed
- mainAction() : ResponseInterface
- Injects the request object for the current request or subrequest As this controller goes only through the main() method, it is rather simple for now
- checkEditAccess() : bool
- Checks access for element
- getBackendUserAuthentication() : BackendUserAuthentication
- Returns an instance of BackendUserAuthentication
- getLanguageService() : LanguageService
- Returns an instance of LanguageService
- processRequest() : ResponseInterface
- Process request function Makes a header-location redirect to an edit form IF POSSIBLE from the passed data - otherwise the window will just close.
Constants
JAVASCRIPT_HELPER
protected
mixed
JAVASCRIPT_HELPER
= 'EXT:backend/Resources/Public/JavaScript/Helper.js'
Properties
$closeWindow
HTML markup to close the open window.
protected
string
$closeWindow
$doClose
Boolean; if set, the window will be closed by JavaScript
protected
int
$doClose
$P
Wizard parameters, coming from FormEngine linking to the wizard.
protected
array<string|int, mixed>
$P
Contains the following parts:
- table
- field
- formName
- hmac
- fieldChangeFunc
- fieldChangeFuncHash
- currentValue
- currentSelectedValues
Methods
__construct()
public
__construct() : mixed
mainAction()
Injects the request object for the current request or subrequest As this controller goes only through the main() method, it is rather simple for now
public
mainAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacecheckEditAccess()
Checks access for element
protected
checkEditAccess(string $table, int $uid) : bool
Parameters
- $table : string
-
Table name
- $uid : int
-
Record uid
Return values
boolgetBackendUserAuthentication()
Returns an instance of BackendUserAuthentication
protected
getBackendUserAuthentication() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetLanguageService()
Returns an instance of LanguageService
protected
getLanguageService() : LanguageService
Return values
LanguageServiceprocessRequest()
Process request function Makes a header-location redirect to an edit form IF POSSIBLE from the passed data - otherwise the window will just close.
protected
processRequest() : ResponseInterface