‪TYPO3CMS  11.5
TYPO3\CMS\Impexp\Utility\ImportExportUtility Class Reference

Public Member Functions

 __construct (EventDispatcherInterface $eventDispatcher)
 getImport ()
int importT3DFile (string $file, int $pid)

Protected Attributes

Import $import = null
EventDispatcherInterface $eventDispatcher

Detailed Description

Utility for import / export Can be used for API access for simple importing of files.

This class is not considered part of the public TYPO3 API.

Definition at line 32 of file ImportExportUtility.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Impexp\Utility\ImportExportUtility::__construct ( EventDispatcherInterface  $eventDispatcher)

Member Function Documentation

◆ getImport()

TYPO3\CMS\Impexp\Utility\ImportExportUtility::getImport ( )

◆ importT3DFile()

int TYPO3\CMS\Impexp\Utility\ImportExportUtility::importT3DFile ( string  $file,
int  $pid 

Import a T3D file directly

string$file‪The full absolute path to the file
int$pid‪The pid under which the t3d file should be imported

Definition at line 55 of file ImportExportUtility.php.

Member Data Documentation

◆ $eventDispatcher

EventDispatcherInterface TYPO3\CMS\Impexp\Utility\ImportExportUtility::$eventDispatcher

◆ $import

Import TYPO3\CMS\Impexp\Utility\ImportExportUtility::$import = null