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

Public Member Functions

 __construct ()
 
ResponseInterface mainAction (ServerRequestInterface $request)
 
string 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
 
array $P
 
int $doClose
 
string $closeWindow = '<script language="javascript" type="text/javascript">close();</script>'
 

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 33 of file EditController.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ init()

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

Initialization of the script

Parameters
ServerRequestInterface$request

Definition at line 89 of file EditController.php.

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

◆ main()

string TYPO3\CMS\Backend\Controller\Wizard\EditController::main ( )

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

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

Definition at line 121 of file EditController.php.

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

◆ mainAction()

ResponseInterface 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

Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface

Definition at line 107 of file EditController.php.

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

◆ processRequest()

ResponseInterface TYPO3\CMS\Backend\Controller\Wizard\EditController::processRequest ( ServerRequestInterface  $request)
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.

Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface

Definition at line 143 of file EditController.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger().

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

Member Data Documentation

◆ $closeWindow

string TYPO3\CMS\Backend\Controller\Wizard\EditController::$closeWindow = '<script language="javascript" type="text/javascript">close();</script>'
protected

A little JavaScript to close the open window.

Definition at line 71 of file EditController.php.

◆ $deprecatedPublicProperties

array TYPO3\CMS\Backend\Controller\Wizard\EditController::$deprecatedPublicProperties
protected
Initial value:
= array(
'P' => 'Using $P of class EditController from the outside is discouraged, as this variable is only used for internal storage.',
'doClose' => 'Using $doClose of class EditController 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 40 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 65 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 59 of file EditController.php.