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

Public Member Functions

 __construct ()
 
ResponseInterface mainAction (ServerRequestInterface $request)
 
ResponseInterface processAjaxRequest (ServerRequestInterface $request)
 
 init (ServerRequestInterface $request=null)
 
 initClipboard ()
 
 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

 initializeClipboard ()
 
 processRequest ()
 
BackendUserAuthentication getBackendUser ()
 

Protected Attributes

array $deprecatedPublicProperties
 
array $flags
 
array $data
 
array $cmd
 
array $mirror
 
string $cacheCmd
 
string $redirect
 
array $CB
 
TYPO3 CMS Core DataHandling DataHandler $tce
 

Detailed Description

Script Class, creating object of \TYPO3\CMS\Core\DataHandling\DataHandler and sending the posted data to the object.

Used by many smaller forms/links in TYPO3, including the QuickEdit module. Is not used by FormEngine though (main form rendering script) - that uses the same class (DataHandler) but makes its own initialization (to save the redirect request). For all other cases than FormEngine it is recommended to use this script for submitting your editing forms - but the best solution in any case would probably be to link your application to FormEngine, that will give you easy form-rendering as well.

Definition at line 41 of file SimpleDataHandlerController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::__construct ( )

Member Function Documentation

◆ getBackendUser()

BackendUserAuthentication TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::getBackendUser ( )
protected

Returns the current BE user.

Returns
‪BackendUserAuthentication

Definition at line 302 of file SimpleDataHandlerController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\Controller\SimpleDataHandlerController\init().

◆ init()

TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::init ( ServerRequestInterface  $request = null)

◆ initClipboard()

TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::initClipboard ( )

Clipboard pasting and deleting.

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

Definition at line 232 of file SimpleDataHandlerController.php.

References TYPO3\CMS\Backend\Controller\SimpleDataHandlerController\initializeClipboard().

◆ initializeClipboard()

◆ main()

TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::main ( )

Executing the posted actions ...

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

Definition at line 243 of file SimpleDataHandlerController.php.

References TYPO3\CMS\Backend\Controller\SimpleDataHandlerController\processRequest().

◆ mainAction()

ResponseInterface TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::mainAction ( ServerRequestInterface  $request)

Injects the request object for the current request or subrequest As this controller goes only through the processRequest() method, it just redirects to the given URL afterwards.

Parameters
ServerRequestInterface$request‪the current request
Returns
‪ResponseInterface the response with the content

Definition at line 127 of file SimpleDataHandlerController.php.

References TYPO3\CMS\Backend\Controller\SimpleDataHandlerController\initializeClipboard(), and TYPO3\CMS\Backend\Controller\SimpleDataHandlerController\processRequest().

◆ processAjaxRequest()

ResponseInterface TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::processAjaxRequest ( ServerRequestInterface  $request)

◆ processRequest()

Member Data Documentation

◆ $cacheCmd

string TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::$cacheCmd
protected

Cache command sent to ->clear_cacheCmd

Definition at line 88 of file SimpleDataHandlerController.php.

◆ $CB

array TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::$CB
protected

Clipboard command array. May trigger changes in "cmd"

Definition at line 100 of file SimpleDataHandlerController.php.

◆ $cmd

array TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::$cmd
protected

Command array on the form [tablename][uid][command] = value. This array may get additional data set internally based on clipboard commands send in CB var!

Definition at line 76 of file SimpleDataHandlerController.php.

◆ $data

array TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::$data
protected

Data array on the form [tablename][uid][fieldname] = value

Definition at line 69 of file SimpleDataHandlerController.php.

◆ $deprecatedPublicProperties

array TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::$deprecatedPublicProperties
protected
Initial value:
= array(
'flags' => 'Using $flags of class SimpleDataHandlerController from the outside is discouraged, as this variable is only used for internal storage.',
'data' => 'Using $data of class SimpleDataHandlerController from the outside is discouraged, as this variable is only used for internal storage.',
'cmd' => 'Using $cmd of class SimpleDataHandlerController from the outside is discouraged, as this variable is only used for internal storage.',
'mirror' => 'Using $mirror of class SimpleDataHandlerController from the outside is discouraged, as this variable is only used for internal storage.',
'cacheCmd' => 'Using $cacheCmd of class SimpleDataHandlerController from the outside is discouraged, as this variable is only used for internal storage.',
'redirect' => 'Using $redirect of class SimpleDataHandlerController from the outside is discouraged, as this variable is only used for internal storage.',
'CB' => 'Using $CB of class SimpleDataHandlerController from the outside is discouraged, as this variable is only used for internal storage.',
'tce' => 'Using $tce of class SimpleDataHandlerController 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 48 of file SimpleDataHandlerController.php.

◆ $flags

array TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::$flags
protected

Array. Accepts options to be set in TCE object. Currently it supports "reverseOrder" (bool).

Definition at line 63 of file SimpleDataHandlerController.php.

◆ $mirror

array TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::$mirror
protected

Array passed to ->setMirror.

Definition at line 82 of file SimpleDataHandlerController.php.

◆ $redirect

string TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::$redirect
protected

Redirect URL. Script will redirect to this location after performing operations (unless errors has occurred)

Definition at line 94 of file SimpleDataHandlerController.php.

Referenced by TYPO3\CMS\Backend\Controller\SimpleDataHandlerController\init(), and TYPO3\CMS\Backend\Controller\SimpleDataHandlerController\processAjaxRequest().

◆ $tce

TYPO3 CMS Core DataHandling DataHandler TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::$tce
protected

TYPO3 Core Engine

Definition at line 106 of file SimpleDataHandlerController.php.