‪TYPO3CMS  10.4
TYPO3\CMS\Backend\Controller\Wizard\AddController Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Controller\Wizard\AddController:
TYPO3\CMS\Backend\Controller\Wizard\AbstractWizardController

Public Member Functions

ResponseInterface mainAction (ServerRequestInterface $request)
 

Protected Member Functions

 init (ServerRequestInterface $request)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Controller\Wizard\AbstractWizardController
bool checkEditAccess ($table, $uid)
 
BackendUserAuthentication getBackendUserAuthentication ()
 
LanguageService getLanguageService ()
 

Protected Attributes

int $processDataFlag = 0
 
int $pid
 
string $table
 
int $id
 
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 37 of file AddController.php.

Member Function Documentation

◆ init()

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

◆ mainAction()

ResponseInterface 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

Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface

Definition at line 82 of file AddController.php.

References TYPO3\CMS\Backend\Controller\Wizard\AddController\$id, TYPO3\CMS\Backend\Controller\Wizard\AbstractWizardController\getLanguageService(), TYPO3\CMS\Core\Localization\LanguageService\includeLLFile(), TYPO3\CMS\Backend\Controller\Wizard\AddController\init(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Member Data Documentation

◆ $id

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

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

Definition at line 61 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 67 of file AddController.php.

◆ $pid

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

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

Definition at line 49 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 43 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 73 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.