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

Public Member Functions

 __construct ()
 
 main ()
 
 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 ()
 
 getDocumentTemplate ()
 

Protected Attributes

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

Detailed Description

Script Class for the rename-file form.

Definition at line 27 of file RenameFileController.php.

Constructor & Destructor Documentation

__construct ( )

Constructor

Definition at line 70 of file RenameFileController.php.

References $GLOBALS, and RenameFileController\init().

Member Function Documentation

getDocumentTemplate ( )
protected

Returns an instance of DocumentTemplate

Returns

Definition at line 220 of file RenameFileController.php.

References $GLOBALS.

Referenced by RenameFileController\main().

getLanguageService ( )
protected

Returns LanguageService

Returns

Definition at line 210 of file RenameFileController.php.

References $GLOBALS.

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

init ( )
protected

Initialize

Exceptions
\TYPO3\CMS\Core\Resource\Exception\InsufficientFileAccessPermissionsException

Definition at line 82 of file RenameFileController.php.

References RenameFileController\$title, GeneralUtility\_GP(), GeneralUtility\explodeUrl2Array(), RenameFileController\getLanguageService(), and GeneralUtility\sanitizeLocalUrl().

Referenced by RenameFileController\__construct().

main ( )

Main function, rendering the content of the rename form

Returns
void

Definition at line 136 of file RenameFileController.php.

References RenameFileController\getDocumentTemplate(), RenameFileController\getLanguageService(), GeneralUtility\linkThisUrl(), and Icon\SIZE_SMALL.

Referenced by RenameFileController\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 198 of file RenameFileController.php.

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

Member Data Documentation

$content

Definition at line 65 of file RenameFileController.php.

TYPO3 CMS Core Resource File TYPO3 CMS Core Resource Folder $fileOrFolderObject
protected

The file or folder object that should be renamed

Definition at line 50 of file RenameFileController.php.

$returnUrl

Definition at line 57 of file RenameFileController.php.

$target

Definition at line 43 of file RenameFileController.php.

$title

Definition at line 35 of file RenameFileController.php.

Referenced by RenameFileController\init().