ImportController

Import module controller

Internal

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

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, int $id, array<string|int, mixed> $inputData) : Import
Parameters
$view : ModuleTemplate
$id : int
$inputData : array<string|int, mixed>
Tags
throws
BadFunctionCallException
throws
InvalidArgumentException
throws
RuntimeException
Return values
Import

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>

handleFileUpload()

protected handleFileUpload(ServerRequestInterface $request) : File|null
Parameters
$request : ServerRequestInterface
Return values
File|null

        
On this page

Search results