TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Backend\Controller\File\FileController Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Controller\File\FileController:
TYPO3_tcefile

Public Member Functions

 __construct ()
 
 initClipboard ()
 
 main ()
 
 finish ()
 
 processAjaxRequest (array $params, \TYPO3\CMS\Core\Http\AjaxRequestHandler $ajaxObj)
 

Protected Member Functions

 init ()
 
 flattenResultDataValue ($result)
 

Protected Attributes

 $file
 
 $CB
 
 $overwriteExistingFiles
 
 $vC
 
 $redirect
 
 $fileProcessor
 
 $fileData
 

Detailed Description

Gateway for TCE (TYPO3 Core Engine) file-handling through POST forms. This script serves as the fileadministration part of the TYPO3 Core Engine. Basically it includes two libraries which are used to manipulate files on the server. Before TYPO3 4.3, it was located in typo3/tce_file.php and redirected back to a $redirectURL. Since 4.3 this class is also used for accessing via AJAX

Author
Kasper Skårhøj kaspe.nosp@m.rYYY.nosp@m.Y@typ.nosp@m.o3.c.nosp@m.om

Definition at line 29 of file FileController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\File\FileController::__construct ( )

Constructor

Definition at line 62 of file FileController.php.

References $GLOBALS, and TYPO3\CMS\Backend\Controller\File\FileController\init().

Member Function Documentation

◆ finish()

TYPO3\CMS\Backend\Controller\File\FileController::finish ( )

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

Returns
void

Definition at line 131 of file FileController.php.

References TYPO3\CMS\Core\Utility\HttpUtility\redirect(), and TYPO3\CMS\Backend\Utility\BackendUtility\setUpdateSignal().

◆ flattenResultDataValue()

TYPO3\CMS\Backend\Controller\File\FileController::flattenResultDataValue (   $result)
protected

Flatten result value from FileProcessor

The value can be a File, Folder or boolean

Parameters
bool | \TYPO3\CMS\Core\Resource\File | \TYPO3\CMS\Core\Resource\Folder$result
Returns
bool|string|array

Definition at line 185 of file FileController.php.

References $result, TYPO3\CMS\Backend\Utility\BackendUtility\date(), and TYPO3\CMS\Backend\Utility\IconUtility\mapFileExtensionToSpriteIconClass().

Referenced by TYPO3\CMS\Backend\Controller\File\FileController\processAjaxRequest().

◆ init()

◆ initClipboard()

TYPO3\CMS\Backend\Controller\File\FileController::initClipboard ( )

Initialize the Clipboard. This will fetch the data about files to paste/delete if such an action has been sent.

Returns
void

Definition at line 88 of file FileController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Referenced by TYPO3\CMS\Backend\Controller\File\FileController\init().

◆ main()

TYPO3\CMS\Backend\Controller\File\FileController::main ( )

Performing the file admin action: Initializes the objects, setting permissions, sending data to object.

Returns
void

Definition at line 109 of file FileController.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\getIndpEnv().

Referenced by TYPO3\CMS\Backend\Controller\File\FileController\processAjaxRequest().

◆ processAjaxRequest()

TYPO3\CMS\Backend\Controller\File\FileController::processAjaxRequest ( array  $params,
\TYPO3\CMS\Core\Http\AjaxRequestHandler  $ajaxObj 
)

Handles the actual process from within the ajaxExec function therefore, it does exactly the same as the real typo3/tce_file.php but without calling the "finish" method, thus makes it simpler to deal with the actual return value

Parameters
array$paramsAlways empty.
\TYPO3\CMS\Core\Http\AjaxRequestHandler$ajaxObjThe AjaxRequestHandler object used to return content and set content types
Returns
void

Definition at line 150 of file FileController.php.

References $result, TYPO3\CMS\Backend\Controller\File\FileController\flattenResultDataValue(), TYPO3\CMS\Backend\Controller\File\FileController\init(), and TYPO3\CMS\Backend\Controller\File\FileController\main().

Member Data Documentation

◆ $CB

TYPO3\CMS\Backend\Controller\File\FileController::$CB
protected

Definition at line 36 of file FileController.php.

◆ $file

TYPO3\CMS\Backend\Controller\File\FileController::$file
protected

Definition at line 33 of file FileController.php.

◆ $fileData

TYPO3\CMS\Backend\Controller\File\FileController::$fileData
protected

Definition at line 57 of file FileController.php.

◆ $fileProcessor

TYPO3\CMS\Backend\Controller\File\FileController::$fileProcessor
protected

Definition at line 54 of file FileController.php.

◆ $overwriteExistingFiles

TYPO3\CMS\Backend\Controller\File\FileController::$overwriteExistingFiles
protected

Definition at line 39 of file FileController.php.

◆ $redirect

TYPO3\CMS\Backend\Controller\File\FileController::$redirect
protected

Definition at line 46 of file FileController.php.

◆ $vC

TYPO3\CMS\Backend\Controller\File\FileController::$vC
protected

Definition at line 43 of file FileController.php.