ImportController

class \TYPO3\CMS\Impexp\Controller\ImportController

Import module controller

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

configureImportFromFormDataAndImportIfRequested()

protected configureImportFromFormDataAndImportIfRequested(ModuleTemplate $view, Import $import, array $inputData) : void

Parameters

$view : ModuleTemplate
$import : Import
$inputData : array

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

Parameters

$import : Import

Return values

array
On this page