TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\Controller\SimpleDataHandlerController Class Reference

Public Member Functions

 __construct ()
 
 init ()
 
 initClipboard ()
 
 main ()
 
 finish ()
 
 mainAction (ServerRequestInterface $request, ResponseInterface $response)
 

Public Attributes

 $flags
 
 $data
 
 $cmd
 
 $mirror
 
 $cacheCmd
 
 $redirect
 
 $prErr
 
 $CB
 
 $vC
 
 $uPT
 
 $tce
 

Protected Member Functions

 getBackendUser ()
 

Detailed Description

Script Class, creating object of 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 (TCEmain) 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 36 of file SimpleDataHandlerController.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ finish()

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

Redirecting the user after the processing has been done. Might also display error messages directly, if any.

Returns
void
Deprecated:
since TYPO3 CMS 7, will be removed in TYPO3 CMS 8

Definition at line 228 of file SimpleDataHandlerController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\logDeprecatedFunction(), and TYPO3\CMS\Core\Utility\HttpUtility\redirect().

◆ getBackendUser()

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

Returns the current BE user.

Returns

Definition at line 316 of file SimpleDataHandlerController.php.

References $GLOBALS.

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

◆ init()

◆ initClipboard()

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

◆ main()

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

◆ mainAction()

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

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

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

Definition at line 248 of file SimpleDataHandlerController.php.

References TYPO3\CMS\Backend\Controller\SimpleDataHandlerController\$redirect, TYPO3\CMS\Core\Messaging\AbstractMessage\ERROR, TYPO3\CMS\Backend\Controller\SimpleDataHandlerController\initClipboard(), TYPO3\CMS\Core\Utility\GeneralUtility\locationHeaderUrl(), TYPO3\CMS\Backend\Controller\SimpleDataHandlerController\main(), and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Member Data Documentation

◆ $cacheCmd

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

Definition at line 72 of file SimpleDataHandlerController.php.

◆ $CB

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

Definition at line 93 of file SimpleDataHandlerController.php.

◆ $cmd

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

Definition at line 58 of file SimpleDataHandlerController.php.

◆ $data

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

Definition at line 50 of file SimpleDataHandlerController.php.

◆ $flags

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

Definition at line 43 of file SimpleDataHandlerController.php.

◆ $mirror

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

Definition at line 65 of file SimpleDataHandlerController.php.

◆ $prErr

TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::$prErr

Definition at line 86 of file SimpleDataHandlerController.php.

◆ $redirect

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

◆ $tce

TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::$tce

Definition at line 114 of file SimpleDataHandlerController.php.

◆ $uPT

TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::$uPT

Definition at line 107 of file SimpleDataHandlerController.php.

◆ $vC

TYPO3\CMS\Backend\Controller\SimpleDataHandlerController::$vC

Definition at line 100 of file SimpleDataHandlerController.php.