![]() |
TYPO3
7.6
|
Public Member Functions | |
__construct () | |
initClipboard () | |
main () | |
finish () | |
mainAction (ServerRequestInterface $request, ResponseInterface $response) | |
processAjaxRequest (ServerRequestInterface $request, ResponseInterface $response) | |
Protected Member Functions | |
init () | |
flattenResultDataValue ($result) | |
getBackendUser () | |
Protected Attributes | |
$file | |
$CB | |
$overwriteExistingFiles | |
$vC | |
$redirect | |
$fileProcessor | |
$fileData | |
Gateway for TCE (TYPO3 Core Engine) file-handling through POST forms. This script serves as the file administration 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
Definition at line 34 of file FileController.php.
__construct | ( | ) |
Constructor
Definition at line 91 of file FileController.php.
References $GLOBALS, and FileController\init().
finish | ( | ) |
Redirecting the user after the processing has been done. Might also display error messages directly, if any.
Definition at line 164 of file FileController.php.
References BackendUtility\setUpdateSignal().
|
protected |
Flatten result value from FileProcessor
The value can be a File, Folder or boolean
bool | \TYPO3\CMS\Core\Resource\File | \TYPO3\CMS\Core\Resource\Folder | $result |
Definition at line 269 of file FileController.php.
References $GLOBALS, BackendUtility\date(), elseif, GeneralUtility\inList(), GeneralUtility\makeInstance(), and Icon\SIZE_SMALL.
Referenced by FileController\processAjaxRequest().
|
protected |
Returns the current BE user.
Definition at line 300 of file FileController.php.
References $GLOBALS.
Referenced by FileController\main().
|
protected |
Registering incoming data
Definition at line 102 of file FileController.php.
References GeneralUtility\_GP(), Enumeration\cast(), FileController\initClipboard(), GeneralUtility\makeInstance(), and GeneralUtility\sanitizeLocalUrl().
Referenced by FileController\__construct().
initClipboard | ( | ) |
Initialize the Clipboard. This will fetch the data about files to paste/delete if such an action has been sent.
Definition at line 119 of file FileController.php.
References GeneralUtility\makeInstance().
Referenced by FileController\init().
main | ( | ) |
Performing the file admin action: Initializes the objects, setting permissions, sending data to object.
Definition at line 141 of file FileController.php.
References $GLOBALS, FileController\getBackendUser(), and GeneralUtility\getIndpEnv().
Referenced by FileController\mainAction(), and FileController\processAjaxRequest().
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.
ServerRequestInterface | $request | the current request |
ResponseInterface | $response |
Definition at line 182 of file FileController.php.
References $response, GeneralUtility\locationHeaderUrl(), FileController\main(), BackendUtility\setUpdateSignal(), and MessageInterface\withHeader().
processAjaxRequest | ( | ServerRequestInterface | $request, |
ResponseInterface | $response | ||
) |
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
ServerRequestInterface | $request | |
ResponseInterface | $response |
Definition at line 210 of file FileController.php.
References $response, FileController\flattenResultDataValue(), MessageInterface\getBody(), FileController\main(), and MessageInterface\withHeader().
|
protected |
Definition at line 48 of file FileController.php.
|
protected |
Definition at line 41 of file FileController.php.
|
protected |
Definition at line 86 of file FileController.php.
|
protected |
Definition at line 79 of file FileController.php.
|
protected |
Definition at line 56 of file FileController.php.
|
protected |
Definition at line 71 of file FileController.php.
|
protected |
Definition at line 64 of file FileController.php.