‪TYPO3CMS  ‪main
TYPO3\CMS\Filelist\Controller\File\ReplaceFileController Class Reference

Public Member Functions

 __construct (protected readonly IconFactory $iconFactory, protected readonly PageRenderer $pageRenderer, protected readonly UriBuilder $uriBuilder, protected readonly ResourceFactory $resourceFactory, protected readonly ModuleTemplateFactory $moduleTemplateFactory,)
 
 mainAction (ServerRequestInterface $request)
 

Protected Member Functions

 init (ServerRequestInterface $request)
 
 renderContent ()
 
 getLanguageService ()
 

Protected Attributes

int $uid
 
ResourceInterface null $fileOrFolderObject
 
string $returnUrl
 
ModuleTemplate $view
 

Detailed Description

Script Class for the replace-file form.

This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.

Definition at line 42 of file ReplaceFileController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Filelist\Controller\File\ReplaceFileController::__construct ( protected readonly IconFactory  $iconFactory,
protected readonly PageRenderer  $pageRenderer,
protected readonly UriBuilder  $uriBuilder,
protected readonly ResourceFactory  $resourceFactory,
protected readonly ModuleTemplateFactory  $moduleTemplateFactory 
)

Definition at line 64 of file ReplaceFileController.php.

Member Function Documentation

◆ getLanguageService()

TYPO3\CMS\Filelist\Controller\File\ReplaceFileController::getLanguageService ( )
protected

◆ init()

TYPO3\CMS\Filelist\Controller\File\ReplaceFileController::init ( ServerRequestInterface  $request)
protected

◆ mainAction()

TYPO3\CMS\Filelist\Controller\File\ReplaceFileController::mainAction ( ServerRequestInterface  $request)

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

Definition at line 75 of file ReplaceFileController.php.

References TYPO3\CMS\Filelist\Controller\File\ReplaceFileController\init(), and TYPO3\CMS\Filelist\Controller\File\ReplaceFileController\renderContent().

◆ renderContent()

Member Data Documentation

◆ $fileOrFolderObject

ResourceInterface null TYPO3\CMS\Filelist\Controller\File\ReplaceFileController::$fileOrFolderObject
protected

The file or folder object that should be renamed

Definition at line 54 of file ReplaceFileController.php.

◆ $returnUrl

string TYPO3\CMS\Filelist\Controller\File\ReplaceFileController::$returnUrl
protected

Return URL of list module.

Definition at line 60 of file ReplaceFileController.php.

Referenced by TYPO3\CMS\Filelist\Controller\File\ReplaceFileController\renderContent().

◆ $uid

int TYPO3\CMS\Filelist\Controller\File\ReplaceFileController::$uid
protected

◆ $view

ModuleTemplate TYPO3\CMS\Filelist\Controller\File\ReplaceFileController::$view
protected

Definition at line 62 of file ReplaceFileController.php.