ImportController
Import module controller
This class is not considered part of the public TYPO3 API.
Attributes
- #[AsController]
Table of Contents
Constants
- ALLOWED_UPLOAD_EXTENSION_LIST : mixed = '.t3d,.xml'
- ALLOWED_UPLOAD_EXTENSIONS : mixed = ['t3d', 'xml']
- File extensions accepted by the import upload. Uploading any other file type is rejected before the file is written to storage.
- NO_UPLOAD : mixed = 0
- UPLOAD_DONE : mixed = 1
- UPLOAD_FAILED : mixed = 2
Properties
- $fileProcessor : ExtendedFileUtility
- $iconFactory : IconFactory
- $moduleTemplateFactory : ModuleTemplateFactory
- $resourceFactory : ResourceFactory
Methods
- __construct() : mixed
- handleRequest() : ResponseInterface
- addDocHeaderPreviewButton() : void
- configureImportFromFormDataAndImportIfRequested() : void
- getBackendUser() : BackendUserAuthentication
- getFilePathWithinFileMountBoundaries() : string
- getLanguageService() : LanguageService
- getSelectableFileList() : array<string|int, mixed>
- handleFileUpload() : File|null
Constants
ALLOWED_UPLOAD_EXTENSION_LIST
protected
mixed
ALLOWED_UPLOAD_EXTENSION_LIST
= '.t3d,.xml'
ALLOWED_UPLOAD_EXTENSIONS
File extensions accepted by the import upload. Uploading any other file type is rejected before the file is written to storage.
protected
mixed
ALLOWED_UPLOAD_EXTENSIONS
= ['t3d', 'xml']
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, array<string|int, mixed> $pageInfo) : void
Parameters
- $view : ModuleTemplate
- $pageInfo : array<string|int, mixed>
configureImportFromFormDataAndImportIfRequested()
protected
configureImportFromFormDataAndImportIfRequested(ModuleTemplate $view, Import $import, array<string|int, mixed> $inputData) : void
Parameters
- $view : ModuleTemplate
- $import : Import
- $inputData : array<string|int, mixed>
Tags
getBackendUser()
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, Folder|null $importFolder, ModuleTemplate $view) : File|null
Parameters
- $request : ServerRequestInterface
- $importFolder : Folder|null
- $view : ModuleTemplate