AddController
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
- init() : void
- Initialization of the class.
Properties
$id
Loaded with the created id of a record FormEngine returns .
protected
int
$id
= 0
..
$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
= 0
$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
ResponseInterfaceinit()
Initialization of the class.
protected
init(ServerRequestInterface $request) : void
Parameters
- $request : ServerRequestInterface