‪TYPO3CMS  ‪main
TYPO3\CMS\Filelist\Controller\FileDownloadController Class Reference

Public Member Functions

 __construct (ResourceFactory $resourceFactory, ResponseFactoryInterface $responseFactory, StreamFactoryInterface $streamFactory, Context $context)
 
 handleRequest (ServerRequestInterface $request)
 

Protected Member Functions

 createResponse (string $temporaryFileName, int $filesAdded)
 
FileInterface[] collectFiles (array $items)
 
 getFilesAndFoldersRecursive (Folder $folder)
 
 getBackendUser ()
 

Protected Attributes

ResourceFactory $resourceFactory
 
ResponseFactoryInterface $responseFactory
 
StreamFactoryInterface $streamFactory
 
Context $context
 

Detailed Description

Controller class to create a zip file for given items from a file or folder.

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

Definition at line 40 of file FileDownloadController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Filelist\Controller\FileDownloadController::__construct ( ResourceFactory  $resourceFactory,
ResponseFactoryInterface  $responseFactory,
StreamFactoryInterface  $streamFactory,
Context  $context 
)

Member Function Documentation

◆ collectFiles()

FileInterface [] TYPO3\CMS\Filelist\Controller\FileDownloadController::collectFiles ( array  $items)
protected

◆ createResponse()

TYPO3\CMS\Filelist\Controller\FileDownloadController::createResponse ( string  $temporaryFileName,
int  $filesAdded 
)
protected

◆ getBackendUser()

TYPO3\CMS\Filelist\Controller\FileDownloadController::getBackendUser ( )
protected

◆ getFilesAndFoldersRecursive()

TYPO3\CMS\Filelist\Controller\FileDownloadController::getFilesAndFoldersRecursive ( Folder  $folder)
protected

◆ handleRequest()

Member Data Documentation

◆ $context

Context TYPO3\CMS\Filelist\Controller\FileDownloadController::$context
protected

◆ $resourceFactory

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

◆ $responseFactory

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

◆ $streamFactory

StreamFactoryInterface TYPO3\CMS\Filelist\Controller\FileDownloadController::$streamFactory
protected