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

Public Member Functions

 __construct (private readonly FlexFormTools $flexFormTools,)
 
 mainAction (ServerRequestInterface $request)
 

Protected Member Functions

 processRequest ()
 

Protected Attributes

const JAVASCRIPT_HELPER = 'EXT:backend/Resources/Public/JavaScript/helper.js'
 
array $P
 
int $doClose
 
string $closeWindow
 

Detailed Description

Script Class for redirecting a backend user to the editing form when an "Edit wizard" link was clicked in FormEngine somewhere.

This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.

Definition at line 39 of file EditController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\Wizard\EditController::__construct ( private readonly FlexFormTools  $flexFormTools)

Member Function Documentation

◆ mainAction()

TYPO3\CMS\Backend\Controller\Wizard\EditController::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 88 of file EditController.php.

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

◆ processRequest()

TYPO3\CMS\Backend\Controller\Wizard\EditController::processRequest ( )
protected

Process request function Makes a header-location redirect to an edit form IF POSSIBLE from the passed data - otherwise the window will just close.

Definition at line 105 of file EditController.php.

References $GLOBALS, TYPO3\CMS\Webhooks\Message\$url, TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger(), TYPO3\CMS\Core\Utility\ArrayUtility\getValueByPath(), and TYPO3\CMS\Core\Utility\GeneralUtility\revExplode().

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

Member Data Documentation

◆ $closeWindow

string TYPO3\CMS\Backend\Controller\Wizard\EditController::$closeWindow
protected

HTML markup to close the open window.

Definition at line 68 of file EditController.php.

◆ $doClose

int TYPO3\CMS\Backend\Controller\Wizard\EditController::$doClose
protected

Boolean; if set, the window will be closed by JavaScript

Definition at line 63 of file EditController.php.

◆ $P

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

Wizard parameters, coming from FormEngine linking to the wizard.

Contains the following parts:

  • ‪table
  • ‪field
  • ‪formName
  • ‪hmac
  • ‪fieldChangeFunc
  • ‪fieldChangeFuncHash
  • ‪currentValue
  • ‪currentSelectedValues

Definition at line 57 of file EditController.php.

◆ JAVASCRIPT_HELPER

const TYPO3\CMS\Backend\Controller\Wizard\EditController::JAVASCRIPT_HELPER = 'EXT:backend/Resources/Public/JavaScript/helper.js'
protected

Definition at line 41 of file EditController.php.