‪TYPO3CMS  10.4
TYPO3\CMS\Impexp\Controller\ImportExportController Class Reference
Inheritance diagram for TYPO3\CMS\Impexp\Controller\ImportExportController:
TYPO3\CMS\Impexp\Controller\ExportController TYPO3\CMS\Impexp\Controller\ImportController

Public Member Functions

 __construct ()
 
ResponseInterface mainAction (ServerRequestInterface $request)
 

Protected Member Functions

 getButtons ()
 
Folder null getDefaultImportExportFolder ()
 
BackendUserAuthentication getBackendUser ()
 
LanguageService getLanguageService ()
 

Protected Attributes

int $id
 
array $pageinfo
 
string $perms_clause
 
LanguageService $lang
 
IconFactory $iconFactory
 
string $moduleName = 'xMOD_tximpexp'
 
ModuleTemplate $moduleTemplate
 
string $shortcutName
 
StandaloneView $standaloneView
 
string $returnUrl
 

Detailed Description

Main script class for the Import / Export facility.

Todo:
‪: In TYPO3 v11 this class is about to become an abstract class

this is a TYPO3 Backend controller implementation and not part of TYPO3's Core API.

Definition at line 41 of file ImportExportController.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ getBackendUser()

◆ getButtons()

TYPO3\CMS\Impexp\Controller\ImportExportController::getButtons ( )
protected

Create the panel of buttons for submitting the form or otherwise perform operations.

Reimplemented in TYPO3\CMS\Impexp\Controller\ImportController.

Definition at line 173 of file ImportExportController.php.

References TYPO3\CMS\Impexp\Controller\ImportExportController\getBackendUser(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Impexp\Controller\ExportController\mainAction().

◆ getDefaultImportExportFolder()

Folder null TYPO3\CMS\Impexp\Controller\ImportExportController::getDefaultImportExportFolder ( )
protected

◆ getLanguageService()

LanguageService TYPO3\CMS\Impexp\Controller\ImportExportController::getLanguageService ( )
protected

◆ mainAction()

ResponseInterface TYPO3\CMS\Impexp\Controller\ImportExportController::mainAction ( ServerRequestInterface  $request)

Injects the request object for the current request and gathers all data

IMPORTING DATA:

Incoming array has syntax: GETvar 'id' = import page id (must be readable)

file = pointing to filename relative to public web path

[all relation fields are clear, but not files]

  • ‪page-tree is written first
  • ‪then remaining pages (to the root of import)
  • ‪then all other records are written either to related included pages or if not found to import-root (should be a sysFolder in most cases)
  • ‪then all internal relations are set and non-existing relations removed, relations to static tables preserved.

EXPORTING DATA:

Incoming array has syntax:

file[] = file dir[] = dir list[] = table:pid record[] = table:uid

pagetree[id] = (single id) pagetree[levels]=1,2,3, -1 = currently unpacked tree, -2 = only tables on page pagetree[tables][]=table/_ALL

external_ref[tables][]=table/_ALL

Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface
Exceptions
RouteNotFoundException

Reimplemented in TYPO3\CMS\Impexp\Controller\ExportController, and TYPO3\CMS\Impexp\Controller\ImportController.

Definition at line 154 of file ImportExportController.php.

Member Data Documentation

◆ $iconFactory

IconFactory TYPO3\CMS\Impexp\Controller\ImportExportController::$iconFactory
protected

Definition at line 67 of file ImportExportController.php.

◆ $id

int TYPO3\CMS\Impexp\Controller\ImportExportController::$id
protected

The integer value of the GET/POST var, 'id'. Used for submodules to the 'Web' module (page id)

Definition at line 47 of file ImportExportController.php.

◆ $lang

LanguageService TYPO3\CMS\Impexp\Controller\ImportExportController::$lang
protected

◆ $moduleName

string TYPO3\CMS\Impexp\Controller\ImportExportController::$moduleName = 'xMOD_tximpexp'
protected

The name of the module

Definition at line 73 of file ImportExportController.php.

◆ $moduleTemplate

ModuleTemplate TYPO3\CMS\Impexp\Controller\ImportExportController::$moduleTemplate
protected

ModuleTemplate Container

Definition at line 79 of file ImportExportController.php.

◆ $pageinfo

array TYPO3\CMS\Impexp\Controller\ImportExportController::$pageinfo
protected

Array containing the current page.

Definition at line 53 of file ImportExportController.php.

Referenced by TYPO3\CMS\Impexp\Controller\ImportController\importData().

◆ $perms_clause

string TYPO3\CMS\Impexp\Controller\ImportExportController::$perms_clause
protected

A WHERE clause for selection records from the pages table based on read-permissions of the current backend user.

Definition at line 59 of file ImportExportController.php.

◆ $returnUrl

string TYPO3\CMS\Impexp\Controller\ImportExportController::$returnUrl
protected

Return URL

Definition at line 95 of file ImportExportController.php.

◆ $shortcutName

string TYPO3\CMS\Impexp\Controller\ImportExportController::$shortcutName
protected

The name of the shortcut for this page

Definition at line 85 of file ImportExportController.php.

◆ $standaloneView

StandaloneView TYPO3\CMS\Impexp\Controller\ImportExportController::$standaloneView
protected

Definition at line 89 of file ImportExportController.php.