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

Public Member Functions

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

Protected Attributes

Import null $import
 
EventDispatcherInterface $eventDispatcher
 

Detailed Description

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

Definition at line 29 of file ImportExportUtility.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ getImport()

Import null TYPO3\CMS\Impexp\Utility\ImportExportUtility::getImport ( )
Returns
‪Import|null

Definition at line 47 of file ImportExportUtility.php.

References TYPO3\CMS\Impexp\Utility\ImportExportUtility\$import.

◆ importT3DFile()

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

Import a T3D file directly

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

Definition at line 61 of file ImportExportUtility.php.

References $errors.

Member Data Documentation

◆ $eventDispatcher

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

◆ $import

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