AddController extends AbstractWizardController
Script Class for adding new items to a group/select field. Performs proper redirection as needed.
Script is typically called after new child record was added and then adds the new child to select value of parent.
This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.
Table of Contents
Properties
- $id : int
- Loaded with the created id of a record FormEngine returns .
- $P : array<string|int, mixed>
- Wizard parameters, coming from TCEforms linking to the wizard.
- $pid : int
- Create new record -pid (pos/neg). If blank, return immediately
- $processDataFlag : int
- If set, the DataHandler class is loaded and used to add the returning ID to the parent record.
- $returnEditConf : string
- Information coming back from the FormEngine script, telling what the table/id was of the newly created record.
- $table : string
- The parent table we are working on.
Methods
- 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
- init() : void
- Initialization of the class.
Properties
$id
Loaded with the created id of a record FormEngine returns .
protected
int
$id
..
$P
Wizard parameters, coming from TCEforms linking to the wizard.
protected
array<string|int, mixed>
$P
$pid
Create new record -pid (pos/neg). If blank, return immediately
protected
int
$pid
$processDataFlag
If set, the DataHandler class is loaded and used to add the returning ID to the parent record.
protected
int
$processDataFlag
= 0
$returnEditConf
Information coming back from the FormEngine script, telling what the table/id was of the newly created record.
protected
string
$returnEditConf
$table
The parent table we are working on.
protected
string
$table
Methods
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
LanguageServiceinit()
Initialization of the class.
protected
init(ServerRequestInterface $request) : void
Parameters
- $request : ServerRequestInterface