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

Public Member Functions

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

Protected Member Functions

 processRequest (ServerRequestInterface $request)
 
 initializeView ()
 
 initializeModule (ServerRequestInterface $request)
 
 initializeFileList (ServerRequestInterface $request)
 
 generateFileList ()
 
 registerDrapUploader ()
 
 registerFileListCheckboxes ()
 
 registerAdditionalDocHeaderButtons (ServerRequestInterface $request)
 
string getModuleHeadline ()
 
string getDefaultDuplicationBehaviourAction ()
 
ResponseInterface htmlResponse (string $html)
 
 addFlashMessage (string $message, string $title='', int $severity=FlashMessage::INFO)
 
string getFileUploadUrl ()
 
LanguageService getLanguageService ()
 
BackendUserAuthentication getBackendUser ()
 

Protected Attributes

array $MOD_MENU = []
 
array $MOD_SETTINGS = []
 
string $id = ''
 
string $cmd = ''
 
string $searchTerm = ''
 
int $pointer = 0
 
Folder $folderObject = null
 
DuplicationBehavior $overwriteExistingFiles = null
 
UriBuilder $uriBuilder
 
PageRenderer $pageRenderer
 
IconFactory $iconFactory
 
ResourceFactory $resourceFactory
 
ModuleTemplateFactory $moduleTemplateFactory
 
ResponseFactoryInterface $responseFactory
 
ModuleTemplate $moduleTemplate = null
 
ViewInterface $view = null
 
FileList $filelist = 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 59 of file FileListController.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ addFlashMessage()

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

Adds a flash message to the default flash message queue

Parameters
string$message
string$title
int$severity

Definition at line 716 of file FileListController.php.

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

◆ generateFileList()

◆ getBackendUser()

◆ getDefaultDuplicationBehaviourAction()

string TYPO3\CMS\Filelist\Controller\FileListController::getDefaultDuplicationBehaviourAction ( )
protected

◆ getFileUploadUrl()

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

Returns the URL for uploading files

Returns
‪string

Definition at line 729 of file FileListController.php.

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

◆ getLanguageService()

◆ getModuleHeadline()

string 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.

Returns
‪string

Definition at line 649 of file FileListController.php.

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

◆ handleRequest()

◆ htmlResponse()

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

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

Parameters
string$html
Returns
‪ResponseInterface

Definition at line 699 of file FileListController.php.

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

◆ initializeFileList()

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

◆ initializeModule()

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

◆ initializeView()

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

◆ processRequest()

◆ registerAdditionalDocHeaderButtons()

◆ registerDrapUploader()

◆ registerFileListCheckboxes()

Member Data Documentation

◆ $cmd

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

Definition at line 66 of file FileListController.php.

◆ $filelist

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

Definition at line 81 of file FileListController.php.

◆ $folderObject

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

Definition at line 69 of file FileListController.php.

◆ $iconFactory

IconFactory TYPO3\CMS\Filelist\Controller\FileListController::$iconFactory
protected

◆ $id

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

Definition at line 65 of file FileListController.php.

◆ $MOD_MENU

array TYPO3\CMS\Filelist\Controller\FileListController::$MOD_MENU = []
protected

Definition at line 63 of file FileListController.php.

◆ $MOD_SETTINGS

array TYPO3\CMS\Filelist\Controller\FileListController::$MOD_SETTINGS = []
protected

Definition at line 64 of file FileListController.php.

◆ $moduleTemplate

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

Definition at line 79 of file FileListController.php.

◆ $moduleTemplateFactory

ModuleTemplateFactory TYPO3\CMS\Filelist\Controller\FileListController::$moduleTemplateFactory
protected

◆ $overwriteExistingFiles

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

Definition at line 70 of file FileListController.php.

◆ $pageRenderer

PageRenderer TYPO3\CMS\Filelist\Controller\FileListController::$pageRenderer
protected

◆ $pointer

int TYPO3\CMS\Filelist\Controller\FileListController::$pointer = 0
protected

◆ $resourceFactory

ResourceFactory TYPO3\CMS\Filelist\Controller\FileListController::$resourceFactory
protected

◆ $responseFactory

ResponseFactoryInterface TYPO3\CMS\Filelist\Controller\FileListController::$responseFactory
protected

◆ $searchTerm

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

Definition at line 67 of file FileListController.php.

◆ $uriBuilder

UriBuilder TYPO3\CMS\Filelist\Controller\FileListController::$uriBuilder
protected

◆ $view

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

Definition at line 80 of file FileListController.php.