TYPO3  7.6
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
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 ( )

Constructor

Definition at line 119 of file SimpleDataHandlerController.php.

References $GLOBALS, and SimpleDataHandlerController\init().

Member Function Documentation

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 235 of file SimpleDataHandlerController.php.

References GeneralUtility\logDeprecatedFunction(), and HttpUtility\redirect().

getBackendUser ( )
protected

Returns the current BE user.

Returns

Definition at line 323 of file SimpleDataHandlerController.php.

References $GLOBALS.

Referenced by SimpleDataHandlerController\init(), and SimpleDataHandlerController\main().

init ( )
initClipboard ( )

Clipboard pasting and deleting.

Returns
void

Definition at line 174 of file SimpleDataHandlerController.php.

References GeneralUtility\makeInstance().

Referenced by SimpleDataHandlerController\mainAction().

main ( )
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 255 of file SimpleDataHandlerController.php.

References $response, SimpleDataHandlerController\initClipboard(), GeneralUtility\locationHeaderUrl(), SimpleDataHandlerController\main(), and MessageInterface\withHeader().

Member Data Documentation

$cacheCmd

Definition at line 72 of file SimpleDataHandlerController.php.

$CB

Definition at line 93 of file SimpleDataHandlerController.php.

$cmd

Definition at line 58 of file SimpleDataHandlerController.php.

$data

Definition at line 50 of file SimpleDataHandlerController.php.

$flags

Definition at line 43 of file SimpleDataHandlerController.php.

$mirror

Definition at line 65 of file SimpleDataHandlerController.php.

$prErr

Definition at line 86 of file SimpleDataHandlerController.php.

$redirect

Definition at line 79 of file SimpleDataHandlerController.php.

$tce

Definition at line 114 of file SimpleDataHandlerController.php.

$uPT

Definition at line 107 of file SimpleDataHandlerController.php.

$vC

Definition at line 100 of file SimpleDataHandlerController.php.