‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Controller\Wizard\AddController Class Reference

Public Member Functions

 __construct (private readonly FormDataCompiler $formDataCompiler,)
 
 mainAction (ServerRequestInterface $request)
 

Protected Member Functions

 init (ServerRequestInterface $request)
 

Protected Attributes

int $processDataFlag = 0
 
int $pid = 0
 
string $table = ''
 
int $id = 0
 
array $P = []
 
string $returnEditConf = ''
 

Detailed Description

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.

Definition at line 40 of file AddController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\Wizard\AddController::__construct ( private readonly FormDataCompiler  $formDataCompiler)

Definition at line 72 of file AddController.php.

Member Function Documentation

◆ init()

TYPO3\CMS\Backend\Controller\Wizard\AddController::init ( ServerRequestInterface  $request)
protected

◆ mainAction()

TYPO3\CMS\Backend\Controller\Wizard\AddController::mainAction ( ServerRequestInterface  $request)

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

Definition at line 80 of file AddController.php.

References TYPO3\CMS\Backend\Controller\Wizard\AddController\$id, TYPO3\CMS\Core\Utility\ArrayUtility\getValueByPath(), TYPO3\CMS\Backend\Controller\Wizard\AddController\init(), TYPO3\CMS\Core\Utility\ArrayUtility\setValueByPath(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Member Data Documentation

◆ $id

int TYPO3\CMS\Backend\Controller\Wizard\AddController::$id = 0
protected

Loaded with the created id of a record FormEngine returns ...

Definition at line 60 of file AddController.php.

Referenced by TYPO3\CMS\Backend\Controller\Wizard\AddController\mainAction().

◆ $P

array TYPO3\CMS\Backend\Controller\Wizard\AddController::$P = []
protected

Wizard parameters, coming from TCEforms linking to the wizard.

Definition at line 65 of file AddController.php.

◆ $pid

int TYPO3\CMS\Backend\Controller\Wizard\AddController::$pid = 0
protected

Create new record -pid (pos/neg). If blank, return immediately

Definition at line 50 of file AddController.php.

◆ $processDataFlag

int TYPO3\CMS\Backend\Controller\Wizard\AddController::$processDataFlag = 0
protected

If set, the DataHandler class is loaded and used to add the returning ID to the parent record.

Definition at line 45 of file AddController.php.

◆ $returnEditConf

string TYPO3\CMS\Backend\Controller\Wizard\AddController::$returnEditConf = ''
protected

Information coming back from the FormEngine script, telling what the table/id was of the newly created record.

Definition at line 70 of file AddController.php.

◆ $table

string TYPO3\CMS\Backend\Controller\Wizard\AddController::$table = ''
protected

The parent table we are working on.

Definition at line 55 of file AddController.php.