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

Public Member Functions

 __construct ()
 
ResponseInterface mainAction (ServerRequestInterface $request)
 

Protected Member Functions

 exportData (array $inData)
 
 addRecordsForPid (int $k, array $tables)
 
Statement exec_listQueryPid (string $table, int $pid)
 
 makeConfigurationForm (array $inData)
 
 makeAdvancedOptionsForm (array $inData)
 
 makeSaveForm (array $inData)
 
array getTableSelectOptions (string $excludeList='')
 
string filterPageIds (array $exclude)
 
BackendUserAuthentication getBackendUser ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Impexp\Controller\ImportExportController
 getButtons ()
 
Folder null getDefaultImportExportFolder ()
 
LanguageService getLanguageService ()
 

Protected Attributes

string $moduleName = 'tx_impexp_export'
 
Export $export
 
string $treeHTML = ''
 
bool $excludeDisabledRecords = false
 
PresetRepository $presetRepository
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Impexp\Controller\ImportExportController
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 Export facility

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

Definition at line 52 of file ExportController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Impexp\Controller\ExportController::__construct ( )

Constructor

Reimplemented from TYPO3\CMS\Impexp\Controller\ImportExportController.

Definition at line 78 of file ExportController.php.

Member Function Documentation

◆ addRecordsForPid()

TYPO3\CMS\Impexp\Controller\ExportController::addRecordsForPid ( int  $k,
array  $tables 
)
protected

Adds records to the export object for a specific page id.

Parameters
int$k‪Page id for which to select records to add
array$tables‪Array of table names to select from

Definition at line 388 of file ExportController.php.

References $GLOBALS, TYPO3\CMS\Impexp\Controller\ExportController\exec_listQueryPid(), and TYPO3\CMS\Impexp\Controller\ExportController\getBackendUser().

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

◆ exec_listQueryPid()

Statement TYPO3\CMS\Impexp\Controller\ExportController::exec_listQueryPid ( string  $table,
int  $pid 
)
protected

Selects records from table / pid

Parameters
string$table‪Table to select from
int$pid‪Page ID to select from
Returns
‪Statement Query statement

Definition at line 411 of file ExportController.php.

References $GLOBALS, and TYPO3\CMS\Core\Database\Query\QueryHelper\parseOrderBy().

Referenced by TYPO3\CMS\Impexp\Controller\ExportController\addRecordsForPid(), and TYPO3\CMS\Impexp\Controller\ExportController\exportData().

◆ exportData()

TYPO3\CMS\Impexp\Controller\ExportController::exportData ( array  $inData)
protected

Export part of module

Parameters
array$inData
Exceptions
ExistingTargetFileNameException
Exception

Definition at line 146 of file ExportController.php.

References TYPO3\CMS\Impexp\Controller\ImportExportController\$lang, TYPO3\CMS\Impexp\Controller\ExportController\addRecordsForPid(), TYPO3\CMS\Core\Utility\PathUtility\basename(), TYPO3\CMS\Backend\Utility\BackendUtility\BEenableFields(), TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger(), TYPO3\CMS\Core\Resource\Folder\checkActionPermission(), TYPO3\CMS\Core\Messaging\AbstractMessage\ERROR, TYPO3\CMS\Impexp\Controller\ExportController\exec_listQueryPid(), TYPO3\CMS\Impexp\Controller\ExportController\filterPageIds(), TYPO3\CMS\Impexp\Controller\ExportController\getBackendUser(), TYPO3\CMS\Impexp\Controller\ImportExportController\getDefaultImportExportFolder(), TYPO3\CMS\Impexp\Controller\ImportExportController\getLanguageService(), TYPO3\CMS\Core\Localization\LanguageService\getLL(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecord(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecordWSOL(), TYPO3\CMS\Impexp\Controller\ExportController\makeAdvancedOptionsForm(), TYPO3\CMS\Impexp\Controller\ExportController\makeConfigurationForm(), TYPO3\CMS\Impexp\Controller\ExportController\makeSaveForm(), TYPO3\CMS\Core\Messaging\AbstractMessage\OK, TYPO3\CMS\Core\Utility\GeneralUtility\rmdir(), TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, and TYPO3\CMS\Core\Utility\GeneralUtility\writeFile().

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

◆ filterPageIds()

string TYPO3\CMS\Impexp\Controller\ExportController::filterPageIds ( array  $exclude)
protected

Filter page IDs by traversing exclude array, finding all excluded pages (if any) and making an AND NOT IN statement for the select clause.

Parameters
array$exclude‪Exclude array from import/export object.
Returns
‪string AND where clause part to filter out page uids.

Definition at line 595 of file ExportController.php.

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

◆ getBackendUser()

◆ getTableSelectOptions()

array TYPO3\CMS\Impexp\Controller\ExportController::getTableSelectOptions ( string  $excludeList = '')
protected

Returns option array to be used in Fluid

Parameters
string$excludeList‪Table names (and the string "_ALL") to exclude. Comma list
Returns
‪array

Definition at line 573 of file ExportController.php.

References $GLOBALS, and TYPO3\CMS\Impexp\Controller\ExportController\getBackendUser().

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

◆ mainAction()

ResponseInterface TYPO3\CMS\Impexp\Controller\ExportController::mainAction ( ServerRequestInterface  $request)
Parameters
ServerRequestInterface$request
Returns
‪ResponseInterface
Exceptions
Exception
ExistingTargetFileNameException
RouteNotFoundException

Reimplemented from TYPO3\CMS\Impexp\Controller\ImportExportController.

Definition at line 92 of file ExportController.php.

References TYPO3\CMS\Impexp\Controller\ExportController\exportData(), TYPO3\CMS\Impexp\Controller\ExportController\getBackendUser(), TYPO3\CMS\Impexp\Controller\ImportExportController\getButtons(), and TYPO3\CMS\Backend\Utility\BackendUtility\readPageAccess().

◆ makeAdvancedOptionsForm()

TYPO3\CMS\Impexp\Controller\ExportController::makeAdvancedOptionsForm ( array  $inData)
protected

Create advanced options form

Parameters
array$inDataForm configuration data

Definition at line 525 of file ExportController.php.

References TYPO3\CMS\Core\Utility\ExtensionManagementUtility\getLoadedExtensionListArray().

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

◆ makeConfigurationForm()

◆ makeSaveForm()

TYPO3\CMS\Impexp\Controller\ExportController::makeSaveForm ( array  $inData)
protected

Create configuration form

Parameters
array$inDataForm configuration data

Definition at line 538 of file ExportController.php.

References TYPO3\CMS\Impexp\Controller\ImportExportController\getDefaultImportExportFolder().

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

Member Data Documentation

◆ $excludeDisabledRecords

bool TYPO3\CMS\Impexp\Controller\ExportController::$excludeDisabledRecords = false
protected

Definition at line 70 of file ExportController.php.

◆ $export

Export TYPO3\CMS\Impexp\Controller\ExportController::$export
protected

Definition at line 62 of file ExportController.php.

◆ $moduleName

string TYPO3\CMS\Impexp\Controller\ExportController::$moduleName = 'tx_impexp_export'
protected

The name of the module

Definition at line 58 of file ExportController.php.

◆ $presetRepository

PresetRepository TYPO3\CMS\Impexp\Controller\ExportController::$presetRepository
protected

preset repository

Definition at line 76 of file ExportController.php.

◆ $treeHTML

string TYPO3\CMS\Impexp\Controller\ExportController::$treeHTML = ''
protected

Definition at line 66 of file ExportController.php.