TYPO3
7.6
|
Public Member Functions | |
__construct () | |
init () | |
main () | |
printContent () | |
mainAction (ServerRequestInterface $request, ResponseInterface $response) | |
addRecordsForPid ($k, $tables, $maxNumber) | |
makeConfigurationForm ($inData, &$row) | |
makeAdvancedOptionsForm ($inData, &$row) | |
makeSaveForm ($inData, &$row) | |
getPreset ($uid) | |
checkUpload () | |
renderSelectBox ($prefix, $value, $optValues) | |
tableSelector ($prefix, $value, $excludeList= '') | |
extensionSelector ($prefix, $value) | |
filterPageIds ($exclude) | |
Public Member Functions inherited from BaseScriptClass | |
init () | |
menuConfig () | |
mergeExternalItems ($modName, $menuKey, $menuArr) | |
handleExternalFunctionValue ($MM_key= 'function', $MS_value=null) | |
getExternalItemConfig ($modName, $menuKey, $value= '') | |
checkExtObj () | |
checkSubExtObj () | |
extObjHeader () | |
extObjContent () | |
Public Attributes | |
$pageinfo | |
Public Attributes inherited from BaseScriptClass | |
$MCONF = array() | |
$id | |
$CMD | |
$perms_clause | |
$MOD_MENU | |
$MOD_SETTINGS = array() | |
$modTSconfig | |
$modMenu_type = '' | |
$modMenu_dontValidateList = '' | |
$modMenu_setDefaultList = '' | |
$extClassConf | |
$content = '' | |
$doc | |
$extObj | |
Protected Member Functions | |
getButtons () | |
getDefaultImportExportFolder () | |
getBackendUser () | |
getDatabaseConnection () | |
getLanguageService () | |
getFile ($combinedIdentifier) | |
Protected Member Functions inherited from BaseScriptClass | |
getLanguageService () | |
getBackendUser () | |
getDatabaseConnection () | |
getPageRenderer () | |
Protected Attributes | |
$uploadedFiles = array() | |
$export | |
$import | |
$fileProcessor | |
$vC = '' | |
$lang = null | |
$treeHTML = '' | |
$iconFactory | |
$moduleName = 'xMOD_tximpexp' | |
$moduleTemplate | |
$shortcutName | |
Protected Attributes inherited from BaseScriptClass | |
$pageRenderer = null | |
Main script class for the Import / Export facility
Definition at line 37 of file ImportExportController.php.
__construct | ( | ) |
Constructor
Definition at line 110 of file ImportExportController.php.
References GeneralUtility\makeInstance().
addRecordsForPid | ( | $k, | |
$tables, | |||
$maxNumber | |||
) |
Adds records to the export object for a specific page id.
int | $k | Page id for which to select records to add |
array | $tables | Array of table names to select from |
int | $maxNumber | Max amount of records to select |
Definition at line 571 of file ImportExportController.php.
References $GLOBALS, MathUtility\forceIntegerInRange(), ImportExportController\getBackendUser(), and ImportExportController\getDatabaseConnection().
checkUpload | ( | ) |
Check if a file has been uploaded
\InvalidArgumentException | |
\UnexpectedValueException |
Definition at line 1457 of file ImportExportController.php.
References $GLOBALS, ImportExportController\$uploadedFiles, GeneralUtility\_GP(), DuplicationBehavior\CANCEL, ImportExportController\getBackendUser(), GeneralUtility\getIndpEnv(), GeneralUtility\makeInstance(), and DuplicationBehavior\REPLACE.
Referenced by ImportExportController\main().
extensionSelector | ( | $prefix, | |
$value | |||
) |
Returns a selector-box with loaded extension keys
string | $prefix | Form element name prefix |
array | $value | The current values selected |
Definition at line 1551 of file ImportExportController.php.
Referenced by ImportExportController\makeAdvancedOptionsForm().
filterPageIds | ( | $exclude | ) |
Filter page IDs by traversing exclude array, finding all excluded pages (if any) and making an AND NOT IN statement for the select clause.
array | $exclude | Exclude array from import/export object. |
Definition at line 1577 of file ImportExportController.php.
|
protected |
Definition at line 1599 of file ImportExportController.php.
Referenced by ImportExportController\addRecordsForPid(), ImportExportController\checkUpload(), ImportExportController\getButtons(), ImportExportController\getDefaultImportExportFolder(), ImportExportController\makeConfigurationForm(), and ImportExportController\makeSaveForm().
|
protected |
Create the panel of buttons for submitting the form or otherwise perform operations.
Definition at line 247 of file ImportExportController.php.
References GeneralUtility\_GP(), BackendUtility\BEgetRootLine(), ImportExportController\getBackendUser(), Icon\SIZE_SMALL, and BackendUtility\viewOnClick().
Referenced by ImportExportController\main().
|
protected |
Definition at line 1607 of file ImportExportController.php.
Referenced by ImportExportController\addRecordsForPid(), ImportExportController\getPreset(), and ImportExportController\makeSaveForm().
|
protected |
Returns a object for saving export files to the server and is also used for uploading import files.
\InvalidArgumentException |
Definition at line 1428 of file ImportExportController.php.
References ImportExportController\getBackendUser().
Referenced by ImportExportController\makeSaveForm().
|
protected |
Gets a file by combined identifier.
string | $combinedIdentifier |
Definition at line 1674 of file ImportExportController.php.
Referenced by ImportExportController\makeSaveForm().
|
protected |
Definition at line 1615 of file ImportExportController.php.
Referenced by ImportExportController\init().
getPreset | ( | $uid | ) |
Get single preset record
int | $uid | Preset record |
Definition at line 1412 of file ImportExportController.php.
References ImportExportController\getDatabaseConnection().
init | ( | ) |
Definition at line 119 of file ImportExportController.php.
References ImportExportController\$moduleName, GeneralUtility\_GP(), and ImportExportController\getLanguageService().
Referenced by ImportExportController\mainAction().
main | ( | ) |
Main module function
\BadFunctionCallException | |
\InvalidArgumentException |
Definition at line 134 of file ImportExportController.php.
References GeneralUtility\_GP(), ImportExportController\checkUpload(), ImportExportController\getButtons(), GeneralUtility\inList(), GeneralUtility\makeInstance(), and BackendUtility\readPageAccess().
Referenced by ImportExportController\mainAction().
mainAction | ( | ServerRequestInterface | $request, |
ResponseInterface | $response | ||
) |
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 PATH_site)
[all relation fields are clear, but not files]
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
ServerRequestInterface | $request | the current request |
ResponseInterface | $response |
Definition at line 232 of file ImportExportController.php.
References $GLOBALS, $response, MessageInterface\getBody(), ImportExportController\init(), and ImportExportController\main().
makeAdvancedOptionsForm | ( | $inData, | |
& | $row | ||
) |
Create advanced options form Sets content in $this->content
array | $inData | Form configurat data |
array | $row | Table row accumulation variable. This is filled with table rows. |
Definition at line 811 of file ImportExportController.php.
References BackendUtility\cshItem(), and ImportExportController\extensionSelector().
makeConfigurationForm | ( | $inData, | |
& | $row | ||
) |
Create configuration form
array | $inData | Form configurat data |
array | $row | Table row accumulation variable. This is filled with table rows. |
Definition at line 634 of file ImportExportController.php.
References $GLOBALS, BackendUtility\cshItem(), ImportExportController\getBackendUser(), BackendUtility\getRecordTitle(), BackendUtility\getRecordWSOL(), ImportExportController\renderSelectBox(), Icon\SIZE_SMALL, and ImportExportController\tableSelector().
makeSaveForm | ( | $inData, | |
& | $row | ||
) |
Create configuration form
array | $inData | Form configurat data |
array | $row | Table row accumulation variable. This is filled with table rows. |
Definition at line 869 of file ImportExportController.php.
References BackendUtility\cshItem(), ImportExportController\getBackendUser(), ImportExportController\getDatabaseConnection(), ImportExportController\getDefaultImportExportFolder(), ImportExportController\getFile(), and ImportExportController\renderSelectBox().
printContent | ( | ) |
Print the content
Definition at line 191 of file ImportExportController.php.
References BaseScriptClass\$content, and GeneralUtility\logDeprecatedFunction().
renderSelectBox | ( | $prefix, | |
$value, | |||
$optValues | |||
) |
Makes a selector-box from optValues
string | $prefix | Form element name |
string | $value | Current value |
array | $optValues | Options to display (key/value pairs) |
Definition at line 1493 of file ImportExportController.php.
Referenced by ImportExportController\makeConfigurationForm(), and ImportExportController\makeSaveForm().
tableSelector | ( | $prefix, | |
$value, | |||
$excludeList = '' |
|||
) |
Returns a selector-box with TCA tables
string | $prefix | Form element name prefix |
array | $value | The current values selected |
string | $excludeList | Table names (and the string "_ALL") to exclude. Comma list |
Definition at line 1519 of file ImportExportController.php.
Referenced by ImportExportController\makeConfigurationForm().
|
protected |
Definition at line 54 of file ImportExportController.php.
|
protected |
Definition at line 64 of file ImportExportController.php.
|
protected |
Definition at line 84 of file ImportExportController.php.
|
protected |
Definition at line 59 of file ImportExportController.php.
|
protected |
Definition at line 74 of file ImportExportController.php.
|
protected |
Definition at line 91 of file ImportExportController.php.
Referenced by ImportExportController\init().
|
protected |
Definition at line 98 of file ImportExportController.php.
$pageinfo |
Definition at line 49 of file ImportExportController.php.
|
protected |
Definition at line 105 of file ImportExportController.php.
|
protected |
Definition at line 79 of file ImportExportController.php.
|
protected |
Definition at line 42 of file ImportExportController.php.
Referenced by ImportExportController\checkUpload().
|
protected |
Definition at line 69 of file ImportExportController.php.