‪TYPO3CMS  9.5
TYPO3\CMS\Backend\Controller\Wizard\AddController Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Controller\Wizard\AddController:
TYPO3\CMS\Backend\Controller\Wizard\AbstractWizardController TYPO3\CMS\Core\Compatibility\PublicPropertyDeprecationTrait

Public Member Functions

 __construct ()
 
ResponseInterface mainAction (ServerRequestInterface $request)
 
 main ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Compatibility\PublicPropertyDeprecationTrait
bool __isset (string $propertyName)
 
mixed __get (string $propertyName)
 
 __set (string $propertyName, $propertyValue)
 
 __unset (string $propertyName)
 

Protected Member Functions

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

Protected Attributes

array $deprecatedPublicProperties
 
string $content
 
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.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ init()

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

◆ main()

TYPO3\CMS\Backend\Controller\Wizard\AddController::main ( )

Main function Will issue a location-header, redirecting either BACK or to a new FormEngine instance...

Deprecated:
‪since TYPO3 v9, will be removed in TYPO3 v10.0

Definition at line 124 of file AddController.php.

References $GLOBALS, TYPO3\CMS\Backend\Controller\Wizard\AddController\processRequest(), and TYPO3\CMS\Core\Utility\HttpUtility\redirect().

◆ 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 113 of file AddController.php.

References TYPO3\CMS\Backend\Controller\Wizard\AddController\processRequest().

◆ processRequest()

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

Main function Will issue a location-header, redirecting either BACK or to a new FormEngine instance...

Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface

Definition at line 202 of file AddController.php.

References TYPO3\CMS\Backend\Controller\Wizard\AddController\$id.

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

Member Data Documentation

◆ $content

string TYPO3\CMS\Backend\Controller\Wizard\AddController::$content
protected

Content accumulation for the module.

Deprecated:
‪since TYPO3 v9, will be removed in TYPO3 v10.0, unused

Definition at line 58 of file AddController.php.

◆ $deprecatedPublicProperties

array TYPO3\CMS\Backend\Controller\Wizard\AddController::$deprecatedPublicProperties
protected
Initial value:
= array(
'content' => 'Using $content of class AddController from the outside is discouraged, as this variable is only used for internal storage.',
'processDataFlag' => 'Using $processDataFlag of class AddController from the outside is discouraged, as this variable is only used for internal storage.',
'pid' => 'Using $pid of class AddController from the outside is discouraged, as this variable is only used for internal storage.',
'table' => 'Using $table of class AddController from the outside is discouraged, as this variable is only used for internal storage.',
'id' => 'Using $id of class AddController from the outside is discouraged, as this variable is only used for internal storage.',
'P' => 'Using $P of class AddController from the outside is discouraged, as this variable is only used for internal storage.',
'returnEditConf' => 'Using $returnEditConf of class AddController from the outside is discouraged, as this variable is only used for internal storage.',
)

Properties which have been moved to protected status from public

Definition at line 44 of file AddController.php.

◆ $id

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

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

Definition at line 82 of file AddController.php.

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

◆ $P

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

Wizard parameters, coming from TCEforms linking to the wizard.

Definition at line 88 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 70 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 64 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 94 of file AddController.php.

◆ $table

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

The parent table we are working on.

Definition at line 76 of file AddController.php.