ImportController

Import module controller

Internal

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']

UPLOAD_DONE

protected mixed UPLOAD_DONE = 1

UPLOAD_FAILED

protected mixed UPLOAD_FAILED = 2

Properties

Methods

handleRequest()

public handleRequest(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

addDocHeaderPreviewButton()

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
throws
BadFunctionCallException
throws
InvalidArgumentException
throws
RuntimeException

getFilePathWithinFileMountBoundaries()

protected getFilePathWithinFileMountBoundaries(string $filePath) : string
Parameters
$filePath : string
Return values
string

getSelectableFileList()

protected getSelectableFileList(Import $import) : array<string|int, mixed>
Parameters
$import : Import
Return values
array<string|int, mixed>
On this page

Search results