TYPO3  7.6
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
FileUploadController Class Reference
Inheritance diagram for FileUploadController:
AbstractModule

Public Member Functions

 __construct ()
 
 main ()
 
 renderUploadForm ()
 
 mainAction (ServerRequestInterface $request, ResponseInterface $response)
 
- Public Member Functions inherited from AbstractModule
 __construct ()
 
 processRequest (ServerRequestInterface $request, ResponseInterface $response)
 

Public Attributes

 $title
 
 $target
 
 $returnUrl
 
 $content
 

Protected Member Functions

 init ()
 
 getLanguageService ()
 

Protected Attributes

 $folderObject
 
- Protected Attributes inherited from AbstractModule
 $moduleTemplate
 
 $request
 

Detailed Description

Script Class for display up to 10 upload fields

Definition at line 29 of file FileUploadController.php.

Constructor & Destructor Documentation

__construct ( )

Member Function Documentation

getLanguageService ( )
protected
init ( )
protected
main ( )

Main function, rendering the upload file form fields

Returns
void

Definition at line 126 of file FileUploadController.php.

References $lang, FileUploadController\getLanguageService(), GeneralUtility\linkThisUrl(), FileUploadController\renderUploadForm(), and Icon\SIZE_SMALL.

Referenced by FileUploadController\mainAction().

mainAction ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

Processes the request, currently everything is handled and put together via "main()"

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

Definition at line 208 of file FileUploadController.php.

References $response, MessageInterface\getBody(), and FileUploadController\main().

renderUploadForm ( )

This function renders the upload form

Returns
string The HTML form as a string, ready for outputting

Definition at line 168 of file FileUploadController.php.

References FileUploadController\$content, and FileUploadController\getLanguageService().

Referenced by FileUploadController\main().

Member Data Documentation

$content

Definition at line 57 of file FileUploadController.php.

Referenced by FileUploadController\renderUploadForm().

TYPO3 CMS Core Resource Folder $folderObject
protected

The folder object which is the target directory for the upload

Definition at line 64 of file FileUploadController.php.

$returnUrl

Definition at line 50 of file FileUploadController.php.

$target

Definition at line 43 of file FileUploadController.php.

$title

Definition at line 36 of file FileUploadController.php.

Referenced by FileUploadController\init().