ImportController
Import module controller
This class is not considered part of the public TYPO3 API.
Attributes
- #[AsController]
Table of Contents
Constants
- NO_UPLOAD = 0
- UPLOAD_DONE = 1
- UPLOAD_FAILED = 2
Properties
- $fileProcessor : ExtendedFileUtility
- $iconFactory : IconFactory
- $moduleTemplateFactory : ModuleTemplateFactory
- $resourceFactory : ResourceFactory
Methods
- __construct() : mixed
- handleRequest() : ResponseInterface
- addDocHeaderPreviewButton() : void
- configureImportFromFormDataAndImportIfRequested() : Import
- getBackendUser() : BackendUserAuthentication
- getFilePathWithinFileMountBoundaries() : string
- getLanguageService() : LanguageService
- getSelectableFileList() : array<string|int, mixed>
- handleFileUpload() : File|null
Constants
NO_UPLOAD
protected
mixed
NO_UPLOAD
= 0
UPLOAD_DONE
protected
mixed
UPLOAD_DONE
= 1
UPLOAD_FAILED
protected
mixed
UPLOAD_FAILED
= 2
Properties
$fileProcessor read-only
protected
ExtendedFileUtility
$fileProcessor
$iconFactory read-only
protected
IconFactory
$iconFactory
$moduleTemplateFactory read-only
protected
ModuleTemplateFactory
$moduleTemplateFactory
$resourceFactory read-only
protected
ResourceFactory
$resourceFactory
Methods
__construct()
public
__construct(IconFactory $iconFactory, ModuleTemplateFactory $moduleTemplateFactory, ExtendedFileUtility $fileProcessor, ResourceFactory $resourceFactory) : mixed
Parameters
- $iconFactory : IconFactory
- $moduleTemplateFactory : ModuleTemplateFactory
- $fileProcessor : ExtendedFileUtility
- $resourceFactory : ResourceFactory
handleRequest()
public
handleRequest(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfaceaddDocHeaderPreviewButton()
protected
addDocHeaderPreviewButton(ModuleTemplate $view, int $pageUid) : void
Parameters
- $view : ModuleTemplate
- $pageUid : int
configureImportFromFormDataAndImportIfRequested()
protected
configureImportFromFormDataAndImportIfRequested(ModuleTemplate $view, int $id, array<string|int, mixed> $inputData) : Import
Parameters
- $view : ModuleTemplate
- $id : int
- $inputData : array<string|int, mixed>
Tags
Return values
ImportgetBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetFilePathWithinFileMountBoundaries()
protected
getFilePathWithinFileMountBoundaries(string $filePath) : string
Parameters
- $filePath : string
Return values
stringgetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetSelectableFileList()
protected
getSelectableFileList(Import $import) : array<string|int, mixed>
Parameters
- $import : Import
Return values
array<string|int, mixed>handleFileUpload()
protected
handleFileUpload(ServerRequestInterface $request) : File|null
Parameters
- $request : ServerRequestInterface