‪TYPO3CMS  ‪main
TYPO3\CMS\Filelist\Controller\FileListController Class Reference
Inheritance diagram for TYPO3\CMS\Filelist\Controller\FileListController:

Public Member Functions

 __construct (protected readonly UriBuilder $uriBuilder, protected readonly PageRenderer $pageRenderer, protected readonly IconFactory $iconFactory, protected readonly ResourceFactory $resourceFactory, protected readonly ModuleTemplateFactory $moduleTemplateFactory, protected readonly BackendViewFactory $viewFactory, protected readonly ResponseFactoryInterface $responseFactory,)
 
 handleRequest (ServerRequestInterface $request)
 

Protected Member Functions

 processRequest (ServerRequestInterface $request)
 
 initializeModule (ServerRequestInterface $request)
 
 initializeFileList (ServerRequestInterface $request)
 
 generateFileList (ServerRequestInterface $request)
 
 registerDragUploader ()
 
 registerFileListCheckboxes ()
 
 registerAdditionalDocHeaderButtons (ServerRequestInterface $request)
 
 getModuleHeadline ()
 
 htmlResponse (string $html)
 
 addFlashMessage (string $message, string $title='', ContextualFeedbackSeverity $severity=ContextualFeedbackSeverity::INFO)
 
 getFileUploadUrl ()
 
 getLanguageService ()
 
 getBackendUser ()
 

Protected Attributes

string $id = ''
 
string $cmd = ''
 
string $searchTerm = ''
 
int $currentPage = 1
 
Folder $folderObject = null
 
DuplicationBehavior $overwriteExistingFiles = null
 
ModuleTemplate $view = null
 
FileList $filelist = null
 
ModuleData $moduleData = null
 

Detailed Description

Script Class for creating the list of files in the File > Filelist module.

this is a concrete TYPO3 controller implementation and solely used for EXT:filelist and not part of TYPO3's Core API.

Definition at line 72 of file FileListController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Filelist\Controller\FileListController::__construct ( protected readonly UriBuilder  $uriBuilder,
protected readonly PageRenderer  $pageRenderer,
protected readonly IconFactory  $iconFactory,
protected readonly ResourceFactory  $resourceFactory,
protected readonly ModuleTemplateFactory  $moduleTemplateFactory,
protected readonly BackendViewFactory  $viewFactory,
protected readonly ResponseFactoryInterface  $responseFactory 
)

Definition at line 87 of file FileListController.php.

Member Function Documentation

◆ addFlashMessage()

TYPO3\CMS\Filelist\Controller\FileListController::addFlashMessage ( string  $message,
string  $title = '',
ContextualFeedbackSeverity  $severity = ContextualFeedbackSeverity::INFO 
)
protected

Adds a flash message to the default flash message queue

Definition at line 697 of file FileListController.php.

Referenced by TYPO3\CMS\Filelist\Controller\FileListController\generateFileList(), and TYPO3\CMS\Filelist\Controller\FileListController\handleRequest().

◆ generateFileList()

◆ getBackendUser()

◆ getFileUploadUrl()

TYPO3\CMS\Filelist\Controller\FileListController::getFileUploadUrl ( )
protected

Returns the URL for uploading files

Definition at line 708 of file FileListController.php.

Referenced by TYPO3\CMS\Filelist\Controller\FileListController\registerAdditionalDocHeaderButtons().

◆ getLanguageService()

◆ getModuleHeadline()

TYPO3\CMS\Filelist\Controller\FileListController::getModuleHeadline ( )
protected

Get main headline based on active folder or storage for backend module Folder names are resolved to their special names like done in the tree view.

Definition at line 665 of file FileListController.php.

Referenced by TYPO3\CMS\Filelist\Controller\FileListController\processRequest().

◆ handleRequest()

◆ htmlResponse()

TYPO3\CMS\Filelist\Controller\FileListController::htmlResponse ( string  $html)
protected

Generate a response by either the given $html or by rendering the module content.

Definition at line 684 of file FileListController.php.

◆ initializeFileList()

TYPO3\CMS\Filelist\Controller\FileListController::initializeFileList ( ServerRequestInterface  $request)
protected

◆ initializeModule()

TYPO3\CMS\Filelist\Controller\FileListController::initializeModule ( ServerRequestInterface  $request)
protected

◆ processRequest()

◆ registerAdditionalDocHeaderButtons()

◆ registerDragUploader()

◆ registerFileListCheckboxes()

TYPO3\CMS\Filelist\Controller\FileListController::registerFileListCheckboxes ( )
protected

Member Data Documentation

◆ $cmd

string TYPO3\CMS\Filelist\Controller\FileListController::$cmd = ''
protected

Definition at line 77 of file FileListController.php.

◆ $currentPage

int TYPO3\CMS\Filelist\Controller\FileListController::$currentPage = 1
protected

Definition at line 79 of file FileListController.php.

◆ $filelist

FileList TYPO3\CMS\Filelist\Controller\FileListController::$filelist = null
protected

Definition at line 84 of file FileListController.php.

◆ $folderObject

Folder TYPO3\CMS\Filelist\Controller\FileListController::$folderObject = null
protected

Definition at line 81 of file FileListController.php.

◆ $id

string TYPO3\CMS\Filelist\Controller\FileListController::$id = ''
protected

Definition at line 76 of file FileListController.php.

◆ $moduleData

ModuleData TYPO3\CMS\Filelist\Controller\FileListController::$moduleData = null
protected

Definition at line 85 of file FileListController.php.

◆ $overwriteExistingFiles

DuplicationBehavior TYPO3\CMS\Filelist\Controller\FileListController::$overwriteExistingFiles = null
protected

Definition at line 82 of file FileListController.php.

◆ $searchTerm

string TYPO3\CMS\Filelist\Controller\FileListController::$searchTerm = ''
protected

Definition at line 78 of file FileListController.php.

◆ $view

ModuleTemplate TYPO3\CMS\Filelist\Controller\FileListController::$view = null
protected

Definition at line 83 of file FileListController.php.