‪TYPO3CMS  ‪main
TYPO3\CMS\Impexp\Command\ImportCommand Class Reference
Inheritance diagram for TYPO3\CMS\Impexp\Command\ImportCommand:

Public Member Functions

 __construct (protected readonly Import $import)
 

Protected Member Functions

 configure ()
 
 execute (InputInterface $input, OutputInterface $output)
 
 parseAssociativeArray (InputInterface &$input, string $optionName, string $separator)
 

Detailed Description

Command for importing T3D/XML data files

Definition at line 35 of file ImportCommand.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Impexp\Command\ImportCommand::__construct ( protected readonly Import  $import)

Definition at line 37 of file ImportCommand.php.

Member Function Documentation

◆ configure()

TYPO3\CMS\Impexp\Command\ImportCommand::configure ( )
protected

◆ execute()

TYPO3\CMS\Impexp\Command\ImportCommand::execute ( InputInterface  $input,
OutputInterface  $output 
)
protected

Executes the command for importing a t3d/xml file into the TYPO3 system

Definition at line 106 of file ImportCommand.php.

References $output, TYPO3\CMS\Core\Core\Bootstrap\initializeBackendAuthentication(), and TYPO3\CMS\Impexp\Command\ImportCommand\parseAssociativeArray().

◆ parseAssociativeArray()

TYPO3\CMS\Impexp\Command\ImportCommand::parseAssociativeArray ( InputInterface &  $input,
string  $optionName,
string  $separator 
)
protected

Parse a basic commandline option array into an associative array by splitting each entry into a key part and a value part using a specific separator.

Definition at line 140 of file ImportCommand.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Referenced by TYPO3\CMS\Impexp\Command\ImportCommand\execute().