TYPO3  7.6
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
ImportExport Class Reference

Public Member Functions

 __construct ()
 
 init ($dontCompress=false, $mode= '')
 
 setHeaderBasics ()
 
 setCharset ($charset)
 
 setMetaData ($title, $description, $notes, $packager_username, $packager_name, $packager_email)
 
 setSaveFilesOutsideExportFile ($saveFilesOutsideExportFile)
 
 addThumbnail ($imgFilepath)
 
 setPageTree ($idH)
 
 unsetExcludedSections ($idH)
 
 flatInversePageTree ($idH, $a=array())
 
 flatInversePageTree_pid ($idH, $a=array(), $pid=-1)
 
 setRecordTypesIncludeFields (array $recordTypesIncludeFields)
 
 setRecordTypeIncludeFields ($table, array $fields)
 
 export_addRecord ($table, $row, $relationLevel=0)
 
 export_addDBRelations ($relationLevel=0)
 
 export_addDBRelations_registerRelation ($fI, &$addR, $tokenID= '')
 
 export_addFilesFromRelations ()
 
 export_addFilesFromSysFilesRecords ()
 
 export_addSysFile (\TYPO3\CMS\Core\Resource\File $file)
 
 export_addFile ($fI, $recordRef= '', $fieldname= '')
 
 getTemporaryFilesPathForExport ()
 
 flatDBrels ($dbrels)
 
 flatSoftRefs ($dbrels)
 
 compileMemoryToFileContent ($type= '')
 
 createXML ()
 
 doOutputCompress ()
 
 addFilePart ($data, $compress=false)
 
 importData ($pid)
 
 writeRecords_pages ($pid)
 
 writeRecords_pages_order ($pid)
 
 writeRecords_records ($pid)
 
 writeRecords_records_order ($mainPid)
 
 addSingle ($table, $uid, $pid)
 
 addToMapId ($substNEWwithIDs)
 
 getNewTCE ()
 
 unlinkTempFiles ()
 
 setRelations ()
 
 setRelations_db ($itemArray, $itemConfig)
 
 import_addFileNameToBeCopied ($fI)
 
 setFlexFormRelations ()
 
 remapListedDBRecords_flexFormCallBack ($pParams, $dsConf, $dataValue, $dataValue_ext1, $dataValue_ext2, $path)
 
 processSoftReferences_flexFormCallBack ($pParams, $dsConf, $dataValue, $dataValue_ext1, $dataValue_ext2, $path)
 
 processSoftReferences_substTokens ($tokenizedContent, $softRefCfgs, $table, $uid)
 
 processSoftReferences_saveFile ($relFileName, $cfg, $table, $uid)
 
 processSoftReferences_saveFile_createRelFile ($origDirPrefix, $fileName, $fileID, $table, $uid)
 
 writeFileVerify ($fileName, $fileID, $bypassMountCheck=false)
 
 checkOrCreateDir ($dirPrefix)
 
 verifyFolderAccess ($dirPrefix, $noAlternative=false)
 
 loadFile ($filename, $all=false)
 
 getNextFilePart ($fd, $unserialize=false, $name= '')
 
 loadContent ($filecontent)
 
 getNextContentPart ($filecontent, &$pointer, $unserialize=false, $name= '')
 
 loadInit ()
 
 fixCharsets ()
 
 displayContentOverview ()
 
 traversePageTree ($pT, &$lines, $preCode= '')
 
 traversePageRecords ($pT, &$lines)
 
 traverseAllRecords ($pT, &$lines)
 
 singleRecordLines ($table, $uid, &$lines, $preCode, $checkImportInPidRecord=false)
 
 addRelations ($rels, &$lines, $preCode, $recurCheck=array(), $htmlColorClass= '')
 
 addFiles ($rels, &$lines, $preCode, $htmlColorClass= '', $tokenID= '')
 
 checkDokType ($checkTable, $doktype)
 
 renderControls ($r)
 
 softrefSelector ($cfg)
 
 isTableStatic ($table)
 
 inclRelation ($table)
 
 isExcluded ($table, $uid)
 
 includeSoftref ($tokenID)
 
 checkPID ($pid)
 
 dontIgnorePid ($table, $uid)
 
 doesRecordExist ($table, $uid, $fields= '')
 
 getRecordPath ($pid)
 
 renderSelectBox ($prefix, $value, $optValues)
 
 compareRecords ($databaseRecord, $importRecord, $table, $inverseDiff=false)
 
 getRTEoriginalFilename ($string)
 
 getFileProcObj ()
 
 callHook ($name, $params)
 
 error ($msg)
 
 printErrorLog ()
 

Public Attributes

 $showStaticRelations = false
 
 $fileadminFolderName = ''
 
 $mode = ''
 
 $update = false
 
 $doesImport = false
 
 $display_import_pid_record = array()
 
 $suggestedInsertUids = array()
 
 $import_mode = array()
 
 $global_ignore_pid = false
 
 $force_all_UIDS = false
 
 $showDiff = false
 
 $allowPHPScripts = false
 
 $enableLogging = false
 
 $softrefInputValues = array()
 
 $fileIDMap = array()
 
 $maxFileSize = 1000000
 
 $maxRecordSize = 1000000
 
 $maxExportSize = 10000000
 
 $relOnlyTables = array()
 
 $relStaticTables = array()
 
 $excludeMap = array()
 
 $softrefCfg = array()
 
 $extensionDependencies = array()
 
 $dontCompress = false
 
 $includeExtFileResources = false
 
 $extFileResourceExtensions = 'html,htm,css'
 
 $import_mapId = array()
 
 $import_newId = array()
 
 $import_newId_pids = array()
 
 $import_data = array()
 
 $errorLog = array()
 
 $cache_getRecordPath = array()
 
 $checkPID_cache = array()
 
 $compress = false
 
 $dat = array()
 

Protected Member Functions

 fixFileIDsInRelations (array $relations)
 
 removeSoftrefsHavingTheSameDatabaseRelation ($relations)
 
 getTemporaryFolderName ()
 
 filterRecordFields ($table, array $row)
 
 initializeImport ()
 
 isFallbackStorage ($storageId)
 
 fixUidLocalInSysFileReferenceRecords ($oldFileUid, $newFileUid)
 
 fetchStorageRecords ()
 
 writeTemporaryFileFromData ($fileId, $dataKey= 'files_fal')
 
 writeSysFileResourceForLegacyImport (&$fileName, $fileId)
 
 migrateLegacyImportRecords ()
 
 addGeneralErrorsByTable ($table)
 

Protected Attributes

 $fileProcObj = null
 
 $recordTypesIncludeFields = array()
 
 $defaultRecordIncludeFields = array('uid', 'pid')
 
 $storageObjects = array()
 
 $legacyImport = false
 
 $legacyImportFolder = null
 
 $legacyImportTargetPath = '_imported/'
 
 $legacyImportMigrationTables
 
 $legacyImportMigrationRecords = array()
 
 $saveFilesOutsideExportFile = false
 
 $temporaryFilesPathForExport = null
 
 $filesPathForImport = null
 
 $unlinkFiles = array()
 
 $alternativeFileName = array()
 
 $alternativeFilePath = array()
 
 $filePathMap = array()
 
 $remainHeader = array()
 
 $iconFactory
 

Detailed Description

EXAMPLE for using the impexp-class for exporting stuff:

Create and initialize: $this->export = ::makeInstance(::class); $this->export->init(); Set which tables relations we will allow: $this->export->relOnlyTables[]="tt_news"; // exclusively includes. See comment in the class

Adding records: $this->export->export_addRecord("pages", $this->pageinfo); $this->export->export_addRecord("pages", ::getRecord("pages", 38)); $this->export->export_addRecord("pages", ::getRecord("pages", 39)); $this->export->export_addRecord("tt_content", ::getRecord("tt_content", 12)); $this->export->export_addRecord("tt_content", ::getRecord("tt_content", 74)); $this->export->export_addRecord("sys_template", ::getRecord("sys_template", 20));

Adding all the relations (recursively in 5 levels so relations has THEIR relations registered as well) for($a=0;$a<5;$a++) { $addR = $this->export->export_addDBRelations($a); if (empty($addR)) break; }

Finally load all the files. $this->export->export_addFilesFromRelations(); // MUST be after the DBrelations are set so that file from ALL added records are included!

Write export $out = $this->export->compileMemoryToFileContent(); T3D file Import/Export library (TYPO3 Record Document)

Definition at line 62 of file ImportExport.php.

Constructor & Destructor Documentation

__construct ( )

The constructor

Definition at line 447 of file ImportExport.php.

References GeneralUtility\makeInstance().

Member Function Documentation

addFilePart (   $data,
  $compress = false 
)

Returns a content part for a filename being build.

Parameters
array$dataData to store in part
bool$compressCompress file?
Returns
string Content stream.

Definition at line 1527 of file ImportExport.php.

References ImportExport\$compress.

Referenced by ImportExport\compileMemoryToFileContent().

addFiles (   $rels,
$lines,
  $preCode,
  $htmlColorClass = '',
  $tokenID = '' 
)

Add file relation entries for a record's rels-array

Parameters
array$relsArray of file IDs
array$linesOutput lines array (is passed by reference and modified)
string$preCodePre-HTML code
string$htmlColorClassAlternative HTML color class to use.
string$tokenIDToken ID if this is a softreference (in which case it only makes sense with a single element in the $rels array!)
Returns
void private
See Also
singleRecordLines()

Definition at line 3876 of file ImportExport.php.

addGeneralErrorsByTable (   $table)
protected

Log general error message for a given table

Parameters
string$tabledatabase table name
Returns
void

Definition at line 3623 of file ImportExport.php.

References ImportExport\error().

Referenced by ImportExport\traverseAllRecords(), ImportExport\writeRecords_pages(), and ImportExport\writeRecords_records().

addRelations (   $rels,
$lines,
  $preCode,
  $recurCheck = array(),
  $htmlColorClass = '' 
)

Add DB relations entries for a record's rels-array

Parameters
array$relsArray of relations
array$linesOutput lines array (is passed by reference and modified)
string$preCodePre-HTML code
array$recurCheckRecursivity check stack
string$htmlColorClassAlternative HTML color class to use.
Returns
void private
See Also
singleRecordLines()

Definition at line 3809 of file ImportExport.php.

addSingle (   $table,
  $uid,
  $pid 
)

Adds a single record to the $importData array. Also copies files to tempfolder. However all File/DB-references and flexform field contents are set to blank for now! That is done with setRelations() later

Parameters
string$tableTable name (from import memory)
int$uidRecord UID (from import memory)
int$pidPage id
Returns
void
See Also
writeRecords()

Definition at line 2141 of file ImportExport.php.

References $GLOBALS, ImportExport\doesRecordExist(), elseif, ImportExport\error(), and StringUtility\getUniqueId().

Referenced by ImportExport\writeRecords_pages(), and ImportExport\writeRecords_records().

addThumbnail (   $imgFilepath)

Sets a thumbnail image to the exported file

Parameters
string$imgFilepathFilename reference, gif, jpg, png. Absolute path.
Returns
void

Definition at line 559 of file ImportExport.php.

References PathUtility\basename(), and GeneralUtility\getUrl().

addToMapId (   $substNEWwithIDs)

Registers the substNEWids in memory.

Parameters
array$substNEWwithIDsFrom tcemain to be merged into internal mapping variable in this object
Returns
void
See Also
writeRecords()

Definition at line 2235 of file ImportExport.php.

References elseif, and ImportExport\error().

Referenced by ImportExport\writeRecords_pages(), and ImportExport\writeRecords_records().

callHook (   $name,
  $params 
)
checkDokType (   $checkTable,
  $doktype 
)

Verifies that a table is allowed on a certain doktype of a page

Parameters
string$checkTableTable name to check
int$doktypedoktype value.
Returns
bool TRUE if OK

Definition at line 3982 of file ImportExport.php.

checkOrCreateDir (   $dirPrefix)

Returns TRUE if directory exists and if it doesn't it will create directory and return TRUE if that succeeded.

Parameters
string$dirPrefixDirectory to create. Having a trailing slash. Must be in fileadmin/. Relative to PATH_site
Returns
bool TRUE, if directory exists (was created)

Definition at line 3168 of file ImportExport.php.

References elseif, ImportExport\error(), GeneralUtility\getFileAbsFileName(), and GeneralUtility\mkdir().

Referenced by ImportExport\processSoftReferences_saveFile_createRelFile().

checkPID (   $pid)

Checking if a PID is in the webmounts of the user

Parameters
int$pidPage ID to check
Returns
bool TRUE if OK

Definition at line 4131 of file ImportExport.php.

Referenced by ImportExport\export_addRecord().

compareRecords (   $databaseRecord,
  $importRecord,
  $table,
  $inverseDiff = false 
)

Compares two records, the current database record and the one from the import memory. Will return HTML code to show any differences between them!

Parameters
array$databaseRecordDatabase record, all fields (new values)
array$importRecordImport memorys record for the same table/uid, all fields (old values)
string$tableThe table name of the record
bool$inverseDiffInverse the diff view (switch red/green, needed for pre-update difference view)
Returns
string HTML

Definition at line 4214 of file ImportExport.php.

compileMemoryToFileContent (   $type = '')

This compiles and returns the data content for an exported file

Parameters
string$typeType of output; "xml" gives xml, otherwise serialized array, possibly compressed.
Returns
string The output file stream

Definition at line 1394 of file ImportExport.php.

References ImportExport\$compress, ImportExport\addFilePart(), ImportExport\createXML(), and ImportExport\doOutputCompress().

createXML ( )

Creates XML string from input array

Returns
string XML content

Definition at line 1418 of file ImportExport.php.

References GeneralUtility\array2xml().

Referenced by ImportExport\compileMemoryToFileContent().

displayContentOverview ( )
doesRecordExist (   $table,
  $uid,
  $fields = '' 
)

Checks if the record exists

Parameters
string$tableTable name
int$uidUID of record
string$fieldsField list to select. Default is "uid,pid
Returns
array Result of ::getRecord() which means the record if found, otherwise FALSE

Definition at line 4159 of file ImportExport.php.

Referenced by ImportExport\addSingle().

dontIgnorePid (   $table,
  $uid 
)

Checks if the position of an updated record is configured to be corrected. This can be disabled globally and changed for elements individually.

Parameters
string$tableTable name
int$uidUid or record
Returns
bool TRUE if the position of the record should be updated to match the one in the import structure

Definition at line 4146 of file ImportExport.php.

Referenced by ImportExport\writeRecords_pages_order(), and ImportExport\writeRecords_records_order().

doOutputCompress ( )

Returns TRUE if the output should be compressed.

Returns
bool TRUE if compression is possible AND requested.

Definition at line 1515 of file ImportExport.php.

References ImportExport\$dontCompress.

Referenced by ImportExport\compileMemoryToFileContent().

error (   $msg)
export_addDBRelations (   $relationLevel = 0)

This analyses the existing added records, finds all database relations to records and adds these records to the export file. This function can be called repeatedly until it returns an empty array. In principle it should not allow to infinite recursivity, but you better set a limit... Call this BEFORE the ext_addFilesFromRelations (so files from added relations are also included of course)

Parameters
int$relationLevelRecursion level
Returns
array overview of relations found and added: Keys [table]:[uid], values array with table and id
See Also
export_addFilesFromRelations()

Definition at line 839 of file ImportExport.php.

References ImportExport\error(), ImportExport\export_addDBRelations_registerRelation(), ImportExport\export_addRecord(), BackendUtility\getRecord(), and ImportExport\includeSoftref().

export_addDBRelations_registerRelation (   $fI,
$addR,
  $tokenID = '' 
)

Helper function for export_addDBRelations()

Parameters
array$fIArray with table/id keys to add
array$addRAdd array, passed by reference to be modified
string$tokenIDSoftref Token ID, if applicable.
Returns
void
See Also
export_addDBRelations()

Definition at line 937 of file ImportExport.php.

References $GLOBALS, ImportExport\inclRelation(), ImportExport\includeSoftref(), ImportExport\isExcluded(), and ImportExport\isTableStatic().

Referenced by ImportExport\export_addDBRelations().

export_addFile (   $fI,
  $recordRef = '',
  $fieldname = '' 
)

Adds a files content to the export memory

Parameters
array$fIFile information with three keys: "filename" = filename without path, "ID_absFile" = absolute filepath to the file (including the filename), "ID" = md5 hash of "ID_absFile". "relFileName" is optional for files attached to records, but mandatory for soft referenced files (since the relFileName determines where such a file should be stored!)
string$recordRefIf the file is related to a record, this is the id on the form [table]:[id]. Information purposes only.
string$fieldnameIf the file is related to a record, this is the field name it was related to. Information purposes only.
Returns
void

Definition at line 1129 of file ImportExport.php.

References $GLOBALS, PathUtility\basename(), PathUtility\dirname(), ImportExport\error(), GeneralUtility\formatSize(), GeneralUtility\getFileAbsFileName(), ImportExport\getRTEoriginalFilename(), ImportExport\getTemporaryFilesPathForExport(), GeneralUtility\getUrl(), GeneralUtility\inList(), GeneralUtility\isFirstPartOfStr(), GeneralUtility\makeInstance(), GeneralUtility\resolveBackPath(), PathUtility\stripPathSitePrefix(), and GeneralUtility\upload_copy_move().

Referenced by ImportExport\export_addFilesFromRelations().

export_addFilesFromRelations ( )

This adds all files in relations. Call this method AFTER adding all records including relations.

Returns
void
See Also
export_addDBRelations()

Definition at line 958 of file ImportExport.php.

References PathUtility\basename(), ImportExport\error(), ImportExport\export_addFile(), GeneralUtility\getFileAbsFileName(), and ImportExport\includeSoftref().

export_addFilesFromSysFilesRecords ( )

This adds all files from sys_file records

Returns
void

Definition at line 1049 of file ImportExport.php.

References ImportExport\export_addSysFile(), and ResourceFactory\getInstance().

export_addRecord (   $table,
  $row,
  $relationLevel = 0 
)

Adds the record $row from $table. No checking for relations done here. Pure data.

Parameters
string$tableTable name
array$rowRecord row.
int$relationLevel(Internal) if the record is added as a relation, this is set to the "level" it was on.
Returns
void

Definition at line 701 of file ImportExport.php.

References ImportExport\checkPID(), ImportExport\error(), ImportExport\filterRecordFields(), GeneralUtility\fixed_lgd_cs(), ImportExport\fixFileIDsInRelations(), ImportExport\flatDBrels(), ImportExport\flatSoftRefs(), GeneralUtility\formatSize(), BackendUtility\getRecordTitle(), GeneralUtility\makeInstance(), ImportExport\removeSoftrefsHavingTheSameDatabaseRelation(), and BackendUtility\workspaceOL().

Referenced by ImportExport\export_addDBRelations().

export_addSysFile ( \TYPO3\CMS\Core\Resource\File  $file)

Adds a files content from a sys file record to the export memory

Parameters
\TYPO3\CMS\Core\Resource\File$file
Returns
void

Definition at line 1067 of file ImportExport.php.

References ImportExport\$maxFileSize, ImportExport\error(), GeneralUtility\formatSize(), ImportExport\getTemporaryFilesPathForExport(), and GeneralUtility\upload_copy_move().

Referenced by ImportExport\export_addFilesFromSysFilesRecords().

fetchStorageRecords ( )
protected

Fetched fresh storage records from database because the new imported ones are not in cached data of the StorageRepository

Returns
bool|array

Definition at line 1873 of file ImportExport.php.

References $GLOBALS, BackendUtility\BEenableFields(), and BackendUtility\deleteClause().

filterRecordFields (   $table,
array  $row 
)
protected

If include fields for a specific record type are set, the data are filtered out with fields are not included in the fields.

Parameters
string$tableThe record type to be filtered
array$rowThe data to be filtered
Returns
array The filtered record row

Definition at line 1364 of file ImportExport.php.

Referenced by ImportExport\export_addRecord().

fixCharsets ( )

Fix charset of import memory if different from system charset

Returns
void
See Also
loadInit()

Definition at line 3418 of file ImportExport.php.

References $GLOBALS, and ImportExport\error().

Referenced by ImportExport\loadInit().

fixFileIDsInRelations ( array  $relations)
protected

This changes the file reference ID from a hash based on the absolute file path (coming from ReferenceIndex) to a hash based on the relative file path.

Parameters
array$relations
Returns
array

Definition at line 759 of file ImportExport.php.

References GeneralUtility\isFirstPartOfStr(), and PathUtility\stripPathSitePrefix().

Referenced by ImportExport\export_addRecord().

fixUidLocalInSysFileReferenceRecords (   $oldFileUid,
  $newFileUid 
)
protected

Normally the importer works like the following: Step 1: import the records with cleared field values of relation fields (see addSingle()) Step 2: update the records with the right relation ids (see setRelations())

In step 2 the saving fields of type "relation to sys_file_reference" checks the related sys_file_reference record (created in step 1) with the FileExtensionFilter for matching file extensions of the related file. To make this work correct, the uid_local of sys_file_reference records has to be not empty AND has to relate to the correct (imported) sys_file record uid!!!

This is fixed here.

Parameters
int$oldFileUid
int$newFileUid
Returns
void

Definition at line 1829 of file ImportExport.php.

flatDBrels (   $dbrels)

DB relations flattend to 1-dim array. The list will be unique, no table/uid combination will appear twice.

Parameters
array$dbrels2-dim Array of database relations organized by table key
Returns
array 1-dim array where entries are table:uid and keys are array with table/id

Definition at line 1290 of file ImportExport.php.

References ImportExport\$dat, and $list.

Referenced by ImportExport\export_addRecord().

flatInversePageTree (   $idH,
  $a = array() 
)

Recursively flattening the idH array (for setPageTree() function)

Parameters
array$idHPage uid hierarchy
array$aAccumulation array of pages (internal, don't set from outside)
Returns
array Array with uid-uid pairs for all pages in the page tree.
See Also
flatInversePageTree_pid()

Definition at line 622 of file ImportExport.php.

Referenced by ImportExport\setPageTree(), ImportExport\writeRecords_pages(), and ImportExport\writeRecords_records_order().

flatInversePageTree_pid (   $idH,
  $a = array(),
  $pid = -1 
)

Recursively flattening the idH array (for setPageTree() function), setting PIDs as values

Parameters
array$idHPage uid hierarchy
array$aAccumulation array of pages (internal, don't set from outside)
int$pidPID value (internal)
Returns
array Array with uid-pid pairs for all pages in the page tree.
See Also
flatInversePageTree()

Definition at line 645 of file ImportExport.php.

Referenced by ImportExport\writeRecords_pages_order().

flatSoftRefs (   $dbrels)

Soft References flattend to 1-dim array.

Parameters
array$dbrels2-dim Array of database relations organized by table key
Returns
array 1-dim array where entries are arrays with properties of the soft link found and keys are a unique combination of field, spKey, structure path if applicable and token ID

Definition at line 1316 of file ImportExport.php.

References ImportExport\$dat, and $list.

Referenced by ImportExport\export_addRecord().

getFileProcObj ( )

Returns file processing object, initialized only once.

Returns
ExtendedFileUtility File processor object

Definition at line 4283 of file ImportExport.php.

Referenced by ImportExport\processSoftReferences_saveFile(), ImportExport\processSoftReferences_saveFile_createRelFile(), ImportExport\verifyFolderAccess(), and ImportExport\writeFileVerify().

getNewTCE ( )
getNextContentPart (   $filecontent,
$pointer,
  $unserialize = false,
  $name = '' 
)

Returns the next content part from the $filecontent

Parameters
string$filecontentFile content string
int$pointerFile pointer (where to read from)
bool$unserializeIf set, the returned content is unserialized into an array, otherwise you get the raw string
string$nameFor error messages this indicates the section of the problem.
Returns
string|NULL Data string

Definition at line 3363 of file ImportExport.php.

References ImportExport\error().

Referenced by ImportExport\loadContent().

getNextFilePart (   $fd,
  $unserialize = false,
  $name = '' 
)

Returns the next content part form the fileresource (t3d), $fd

Parameters
int$fdFile pointer
bool$unserializeIf set, the returned content is unserialized into an array, otherwise you get the raw string
string$nameFor error messages this indicates the section of the problem.
Returns
string|NULL Data string or NULL in case of an error private
See Also
loadFile()

Definition at line 3303 of file ImportExport.php.

References ImportExport\error().

Referenced by ImportExport\loadFile().

getRecordPath (   $pid)

Returns the page title path of a PID value. Results are cached internally

Parameters
int$pidRecord PID to check
Returns
string The path for the input PID

Definition at line 4170 of file ImportExport.php.

getRTEoriginalFilename (   $string)

Creates the original file name for a copy-RTE image (magic type)

Parameters
string$stringRTE copy filename, eg. "RTEmagicC_user_pm_icon_01.gif.gif @return string|NULL RTE original filename, eg. "RTEmagicP_user_pm_icon_01.gif". If the input filename was NOT prefixed RTEmagicC_ as RTE images would be, NULL is returned!

Definition at line 4265 of file ImportExport.php.

Referenced by ImportExport\export_addFile(), and ImportExport\processSoftReferences_saveFile().

getTemporaryFilesPathForExport ( )

If saveFilesOutsideExportFile is enabled, this function returns the path where the files referenced in the export are copied to.

Returns
string
Exceptions
\RuntimeException
See Also
setSaveFilesOutsideExportFile()

Definition at line 1257 of file ImportExport.php.

References ImportExport\$temporaryFilesPathForExport, and ImportExport\getTemporaryFolderName().

Referenced by ImportExport\export_addFile(), and ImportExport\export_addSysFile().

getTemporaryFolderName ( )
protected
Returns
string

Definition at line 1273 of file ImportExport.php.

References GeneralUtility\mkdir().

Referenced by ImportExport\getTemporaryFilesPathForExport(), and ImportExport\loadFile().

import_addFileNameToBeCopied (   $fI)

Writes the file from import array to temp dir and returns the filename of it.

Parameters
array$fIFile information with three keys: "filename" = filename without path, "ID_absFile" = absolute filepath to the file (including the filename), "ID" = md5 hash of "ID_absFile
Returns
string|NULL Absolute filename of the temporary filename of the file. In ->alternativeFileName the original name is set.

Definition at line 2480 of file ImportExport.php.

References ImportExport\error(), GeneralUtility\tempnam(), and GeneralUtility\writeFile().

Referenced by ImportExport\remapListedDBRecords_flexFormCallBack(), and ImportExport\setRelations().

importData (   $pid)

Imports the internal data array to $pid.

Parameters
int$pidPage ID in which to import the content
Returns
void

Definition at line 1579 of file ImportExport.php.

References ImportExport\initializeImport(), ImportExport\migrateLegacyImportRecords(), ImportExport\setFlexFormRelations(), ImportExport\setRelations(), ImportExport\unlinkTempFiles(), ImportExport\writeRecords_pages(), and ImportExport\writeRecords_records().

inclRelation (   $table)

Returns TRUE if the input table name is to be included as relation

Parameters
string$tableTable name
Returns
bool TRUE, if table is marked static

Definition at line 4095 of file ImportExport.php.

Referenced by ImportExport\export_addDBRelations_registerRelation().

includeSoftref (   $tokenID)

Returns TRUE if soft reference should be included in exported file.

Parameters
string$tokenIDToken ID for soft reference
Returns
bool TRUE if softreference media should be included

Definition at line 4120 of file ImportExport.php.

Referenced by ImportExport\export_addDBRelations(), ImportExport\export_addDBRelations_registerRelation(), and ImportExport\export_addFilesFromRelations().

init (   $dontCompress = false,
  $mode = '' 
)

Init the object, both import and export

Parameters
bool$dontCompressIf set, compression of t3d files is disabled
string$modeMode of usage, either "import" or "export
Returns
void

Definition at line 463 of file ImportExport.php.

References ImportExport\$dontCompress, $GLOBALS, and ImportExport\$mode.

initializeImport ( )
protected

Initialize all settings for the import

Returns
void

Definition at line 1544 of file ImportExport.php.

Referenced by ImportExport\importData().

isExcluded (   $table,
  $uid 
)

Returns TRUE if the element should be excluded as static record.

Parameters
string$tableTable name
int$uidUID value
Returns
bool TRUE, if table is marked static

Definition at line 4109 of file ImportExport.php.

Referenced by ImportExport\export_addDBRelations_registerRelation(), and ImportExport\setRelations_db().

isFallbackStorage (   $storageId)
protected

Checks if the $storageId is the id of the fallback storage

Parameters
int | string$storageId
Returns
bool

Definition at line 1808 of file ImportExport.php.

isTableStatic (   $table)

Returns TRUE if the input table name is to be regarded as a static relation (that is, not exported etc).

Parameters
string$tableTable name
Returns
bool TRUE, if table is marked static

Definition at line 4081 of file ImportExport.php.

Referenced by ImportExport\export_addDBRelations_registerRelation(), and ImportExport\setRelations_db().

loadContent (   $filecontent)

Loads T3D file content into the $this->dat array (This function can be used to test the output strings from ->compileMemoryToFileContent())

Parameters
string$filecontentFile content
Returns
void

Definition at line 3345 of file ImportExport.php.

References ImportExport\getNextContentPart(), and ImportExport\loadInit().

loadFile (   $filename,
  $all = false 
)

Loads the header section/all of the $filename into memory

Parameters
string$filenameFilename, absolute
bool$allIf set, all information is loaded (header, records and files). Otherwise the default is to read only the header information
Returns
bool TRUE if the operation went well

Definition at line 3239 of file ImportExport.php.

References $filename, GeneralUtility\copyDirectory(), ImportExport\error(), ImportExport\getNextFilePart(), ImportExport\getTemporaryFolderName(), GeneralUtility\getUrl(), GeneralUtility\isAllowedAbsPath(), ImportExport\loadInit(), and GeneralUtility\xml2array().

loadInit ( )

Setting up the object based on the recently loaded ->dat array

Returns
void

Definition at line 3396 of file ImportExport.php.

References ImportExport\fixCharsets().

Referenced by ImportExport\loadContent(), and ImportExport\loadFile().

migrateLegacyImportRecords ( )
protected

Migrate legacy import records

Returns
void

Definition at line 3093 of file ImportExport.php.

References ImportExport\getNewTCE(), and BackendUtility\getRecord().

Referenced by ImportExport\importData().

printErrorLog ( )

Returns a table with the error-messages.

Returns
string HTML print of error log

Definition at line 4329 of file ImportExport.php.

processSoftReferences_flexFormCallBack (   $pParams,
  $dsConf,
  $dataValue,
  $dataValue_ext1,
  $dataValue_ext2,
  $path 
)

Callback function for traversing the FlexForm structure in relation to remapping softreference relations

Parameters
array$pParamsSet of parameters in numeric array: table, uid, field
array$dsConfTCA config for field (from Data Structure of course)
string$dataValueField value (from FlexForm XML)
string$dataValue_ext1Not used
string$dataValue_ext2Not used
string$pathPath of where the data structure where the element is found
Returns
array Array where the "value" key carries the value.
See Also
setFlexFormRelations()

Definition at line 2716 of file ImportExport.php.

References ImportExport\processSoftReferences_substTokens().

processSoftReferences_saveFile (   $relFileName,
  $cfg,
  $table,
  $uid 
)

Process a soft reference file

Parameters
string$relFileNameOld Relative filename
array$cfgsoft reference configuration array
string$tableTable for which the processing occurs
string$uidUID of record from table
Returns
string New relative filename (value to insert instead of the softref token)

Definition at line 2808 of file ImportExport.php.

References ImportExport\$fileProcObj, PathUtility\basename(), PathUtility\dirname(), elseif, ImportExport\error(), GeneralUtility\getFileAbsFileName(), ImportExport\getFileProcObj(), ImportExport\getRTEoriginalFilename(), GeneralUtility\isFirstPartOfStr(), ImportExport\processSoftReferences_saveFile_createRelFile(), PathUtility\stripPathSitePrefix(), ImportExport\writeFileVerify(), and ImportExport\writeSysFileResourceForLegacyImport().

Referenced by ImportExport\processSoftReferences_substTokens().

processSoftReferences_saveFile_createRelFile (   $origDirPrefix,
  $fileName,
  $fileID,
  $table,
  $uid 
)

Create file in directory and return the new (unique) filename

Parameters
string$origDirPrefixDirectory prefix, relative, with trailing slash
string$fileNameFilename (without path)
string$fileIDFile ID from import memory
string$tableTable for which the processing occurs
string$uidUID of record from table
Returns
string|NULL New relative filename, if any

Definition at line 2884 of file ImportExport.php.

References ImportExport\$fileProcObj, PathUtility\basename(), ImportExport\checkOrCreateDir(), PathUtility\dirname(), ImportExport\error(), GeneralUtility\getFileAbsFileName(), ImportExport\getFileProcObj(), GeneralUtility\isFirstPartOfStr(), GeneralUtility\mkdir(), GeneralUtility\resolveBackPath(), PathUtility\stripPathSitePrefix(), ImportExport\verifyFolderAccess(), GeneralUtility\writeFile(), ImportExport\writeFileVerify(), and ImportExport\writeSysFileResourceForLegacyImport().

Referenced by ImportExport\processSoftReferences_saveFile().

processSoftReferences_substTokens (   $tokenizedContent,
  $softRefCfgs,
  $table,
  $uid 
)

Substition of softreference tokens

Parameters
string$tokenizedContentContent of field with soft reference tokens in.
array$softRefCfgsSoft reference configurations
string$tableTable for which the processing occurs
string$uidUID of record from table
Returns
string The input content with tokens substituted according to entries in softRefCfgs

Definition at line 2750 of file ImportExport.php.

References elseif, BackendUtility\getRecord(), ImportExport\processSoftReferences_saveFile(), and BackendUtility\wsMapId().

Referenced by ImportExport\processSoftReferences_flexFormCallBack().

remapListedDBRecords_flexFormCallBack (   $pParams,
  $dsConf,
  $dataValue,
  $dataValue_ext1,
  $dataValue_ext2,
  $path 
)

Callback function for traversing the FlexForm structure in relation to remapping database relations

Parameters
array$pParamsSet of parameters in numeric array: table, uid, field
array$dsConfTCA config for field (from Data Structure of course)
string$dataValueField value (from FlexForm XML)
string$dataValue_ext1Not used
string$dataValue_ext2Not used
string$pathPath of where the data structure of the element is found
Returns
array Array where the "value" key carries the value.
See Also
setFlexFormRelations()

Definition at line 2603 of file ImportExport.php.

References ImportExport\import_addFileNameToBeCopied(), and ImportExport\setRelations_db().

removeSoftrefsHavingTheSameDatabaseRelation (   $relations)
protected

Relations could contain db relations to sys_file records. Some configuration combinations of TCA and SoftReferenceIndex create also softref relation entries for the identical file. This results in double included files, one in array "files" and one in array "file_fal". This function checks the relations for this double inclusions and removes the redundant softref relation.

Parameters
array$relations
Returns
array

Definition at line 797 of file ImportExport.php.

Referenced by ImportExport\export_addRecord().

renderControls (   $r)

Render input controls for import or export

Parameters
array$rConfiguration for element
Returns
string HTML

Definition at line 3999 of file ImportExport.php.

Referenced by ImportExport\displayContentOverview().

renderSelectBox (   $prefix,
  $value,
  $optValues 
)

Makes a selector-box from optValues

Parameters
string$prefixForm element name
string$valueCurrent value
array$optValuesOptions to display (key/value pairs)
Returns
string HTML select element

Definition at line 4187 of file ImportExport.php.

setCharset (   $charset)

Set charset

Parameters
string$charsetCharset for the content in the export. During import the character set will be converted if the target system uses another charset.
Returns
void

Definition at line 511 of file ImportExport.php.

setFlexFormRelations ( )

After all DB relations has been set in the end of the import (see setRelations()) then it is time to correct all relations inside of FlexForm fields. The reason for doing this after is that the setting of relations may affect (quite often!) which data structure is used for the flexforms field!

Returns
void
See Also
setRelations()

Definition at line 2521 of file ImportExport.php.

References ImportExport\$dat, $GLOBALS, ImportExport\callHook(), ImportExport\error(), BackendUtility\getFlexFormDS(), ImportExport\getNewTCE(), BackendUtility\getRecord(), GeneralUtility\makeInstance(), BackendUtility\wsMapId(), and GeneralUtility\xml2array().

Referenced by ImportExport\importData().

setHeaderBasics ( )
setMetaData (   $title,
  $description,
  $notes,
  $packager_username,
  $packager_name,
  $packager_email 
)

Sets meta data

Parameters
string$titleTitle of the export
string$descriptionDescription of the export
string$notesNotes about the contents
string$packager_usernameBackend Username of the packager (the guy making the export)
string$packager_nameReal name of the packager
string$packager_emailEmail of the packager
Returns
void

Definition at line 527 of file ImportExport.php.

References $GLOBALS.

setPageTree (   $idH)

Sets the page-tree array in the export header and returns the array in a flattened version

Parameters
array$idHHierarchy of ids, the page tree: array([uid] => array("uid" => [uid], "subrow" => array(.....)), [uid] => ....)
Returns
array The hierarchical page tree converted to a one-dimensional list of pages

Definition at line 586 of file ImportExport.php.

References ImportExport\flatInversePageTree(), and ImportExport\unsetExcludedSections().

setRecordTypeIncludeFields (   $table,
array  $fields 
)

Sets the fields of a record type to be included in the export

Parameters
string$tableThe record type
array$fieldsThe fields to be included
Returns
void

Definition at line 687 of file ImportExport.php.

Referenced by ImportExport\setRecordTypesIncludeFields().

setRecordTypesIncludeFields ( array  $recordTypesIncludeFields)

Sets the fields of record types to be included in the export

Parameters
array$recordTypesIncludeFieldsKeys are [recordname], values are an array of fields to be included in the export
Exceptions
\TYPO3\CMS\Core\Exceptionif an array value is not type of array
Returns
void

Definition at line 670 of file ImportExport.php.

References ImportExport\setRecordTypeIncludeFields().

setRelations ( )

At the end of the import process all file and DB relations should be set properly (that is relations to imported records are all re-created so imported records are correctly related again) Relations in flexform fields are processed in setFlexFormRelations() after this function

Returns
void
See Also
setFlexFormRelations()

Definition at line 2305 of file ImportExport.php.

References ImportExport\$dat, $GLOBALS, ImportExport\callHook(), elseif, ImportExport\error(), ImportExport\getNewTCE(), StringUtility\getUniqueId(), ImportExport\import_addFileNameToBeCopied(), DuplicationBehavior\RENAME, ImportExport\setRelations_db(), and BackendUtility\wsMapId().

Referenced by ImportExport\importData().

setRelations_db (   $itemArray,
  $itemConfig 
)

Maps relations for database

Parameters
array$itemArrayArray of item sets (table/uid) from a dbAnalysis object
array$itemConfigArray of TCA config of the field the relation to be set on
Returns
array Array with values [table]_[uid] or [uid] for field of type group / internal_type file_reference. These values have the regular tcemain-input group/select type which means they will automatically be processed into a uid-list or MM relations.

Definition at line 2437 of file ImportExport.php.

References elseif, ImportExport\error(), ImportExport\isExcluded(), and ImportExport\isTableStatic().

Referenced by ImportExport\remapListedDBRecords_flexFormCallBack(), and ImportExport\setRelations().

setSaveFilesOutsideExportFile (   $saveFilesOutsideExportFile)

Option to enable having the files not included in the export file. The files are saved to a temporary folder instead.

Parameters
bool$saveFilesOutsideExportFile
See Also
getTemporaryFilesPathForExport()

Definition at line 548 of file ImportExport.php.

References ImportExport\$saveFilesOutsideExportFile.

singleRecordLines (   $table,
  $uid,
$lines,
  $preCode,
  $checkImportInPidRecord = false 
)

Add entries for a single record

Parameters
string$tableTable name
int$uidRecord uid
array$linesOutput lines array (is passed by reference and modified)
string$preCodePre-HTML code
bool$checkImportInPidRecordIf you want import validation, you can set this so it checks if the import can take place on the specified page.
Returns
void

Definition at line 3643 of file ImportExport.php.

References $GLOBALS, elseif, and ImportExport\error().

Referenced by ImportExport\traverseAllRecords(), ImportExport\traversePageRecords(), and ImportExport\traversePageTree().

softrefSelector (   $cfg)

Selectorbox with export options for soft references

Parameters
array$cfgSoftref configuration array. An export box is shown only if a substitution scheme is found for the soft reference.
Returns
string Selector box HTML

Definition at line 4028 of file ImportExport.php.

traverseAllRecords (   $pT,
$lines 
)

Go through ALL records (if the pages are displayed first, those will not be amoung these!)

Parameters
array$pTPage tree array with uid/subrow (from ->dat[header][pagetree]
array$linesOutput lines array (is passed by reference and modified)
Returns
void

Definition at line 3604 of file ImportExport.php.

References ImportExport\addGeneralErrorsByTable(), and ImportExport\singleRecordLines().

Referenced by ImportExport\displayContentOverview().

traversePageRecords (   $pT,
$lines 
)

Go through remaining pages (not in tree)

Parameters
array$pTPage tree array with uid/subrow (from ->dat[header][pagetree]
array$linesOutput lines array (is passed by reference and modified)
Returns
void

Definition at line 3579 of file ImportExport.php.

References ImportExport\singleRecordLines().

Referenced by ImportExport\displayContentOverview().

traversePageTree (   $pT,
$lines,
  $preCode = '' 
)

Go through page tree for display

Parameters
array$pTPage tree array with uid/subrow (from ->dat[header][pagetree]
array$linesOutput lines array (is passed by reference and modified)
string$preCodePre-HTML code
Returns
void

Definition at line 3549 of file ImportExport.php.

References ImportExport\singleRecordLines().

Referenced by ImportExport\displayContentOverview().

unlinkTempFiles ( )

Cleaning up all the temporary files stored in typo3temp/ folder

Returns
void

Definition at line 2277 of file ImportExport.php.

References ImportExport\error(), GeneralUtility\isFirstPartOfStr(), and GeneralUtility\unlink_tempfile().

Referenced by ImportExport\importData().

unsetExcludedSections (   $idH)

Removes entries in the page tree which are found in ->excludeMap[]

Parameters
array$idHPage uid hierarchy
Returns
array Modified input array private
See Also
setPageTree()

Definition at line 600 of file ImportExport.php.

References elseif.

Referenced by ImportExport\setPageTree().

verifyFolderAccess (   $dirPrefix,
  $noAlternative = false 
)

Verifies that the input path (relative to PATH_site) is found in the backend users filemounts. If it doesn't it will try to find another relative filemount for the user and return an alternative path prefix for the file.

Parameters
string$dirPrefixPath relative to PATH_site
bool$noAlternativeIf set, Do not look for alternative path! Just return FALSE
Returns
string|bool If a path is available that will be returned, otherwise FALSE.

Definition at line 3202 of file ImportExport.php.

References ImportExport\$fileProcObj, ImportExport\getFileProcObj(), GeneralUtility\isFirstPartOfStr(), and PathUtility\stripPathSitePrefix().

Referenced by ImportExport\processSoftReferences_saveFile_createRelFile().

writeFileVerify (   $fileName,
  $fileID,
  $bypassMountCheck = false 
)

Writes a file from the import memory having $fileID to file name $fileName which must be an absolute path inside PATH_site

Parameters
string$fileNameAbsolute filename inside PATH_site to write to
string$fileIDFile ID from import memory
bool$bypassMountCheckBypasses the checking against filemounts - only for RTE files!
Returns
bool Returns TRUE if it went well. Notice that the content of the file is read again, and md5 from import memory is validated.

Definition at line 2982 of file ImportExport.php.

References ImportExport\$fileProcObj, $GLOBALS, ImportExport\error(), GeneralUtility\getFileAbsFileName(), ImportExport\getFileProcObj(), GeneralUtility\getUrl(), GeneralUtility\split_fileref(), and GeneralUtility\writeFile().

Referenced by ImportExport\processSoftReferences_saveFile(), and ImportExport\processSoftReferences_saveFile_createRelFile().

writeRecords_pages (   $pid)

Writing pagetree/pages to database:

Parameters
int$pidPID in which to import. If the operation is an update operation, the root of the page tree inside will be moved to this PID unless it is the same as the root page from the import
Returns
void
See Also
writeRecords_records()

Definition at line 1928 of file ImportExport.php.

References ImportExport\$suggestedInsertUids, ImportExport\addGeneralErrorsByTable(), ImportExport\addSingle(), ImportExport\addToMapId(), ImportExport\callHook(), ImportExport\flatInversePageTree(), ImportExport\getNewTCE(), and ImportExport\writeRecords_pages_order().

Referenced by ImportExport\importData().

writeRecords_pages_order (   $pid)

Organize all updated pages in page tree so they are related like in the import file Only used for updates and when $this->dat['header']['pagetree'] is an array.

Parameters
int$pidPage id in which to import
Returns
void private
See Also
writeRecords_pages(), writeRecords_records_order()

Definition at line 1985 of file ImportExport.php.

References ImportExport\callHook(), ImportExport\dontIgnorePid(), ImportExport\flatInversePageTree_pid(), and ImportExport\getNewTCE().

Referenced by ImportExport\writeRecords_pages().

writeRecords_records (   $pid)
writeRecords_records_order (   $mainPid)

Organize all updated record to their new positions. Only used for updates

Parameters
int$mainPidMain PID into which we import.
Returns
void private
See Also
writeRecords_records(), writeRecords_pages_order()

Definition at line 2087 of file ImportExport.php.

References ImportExport\callHook(), ImportExport\dontIgnorePid(), ImportExport\flatInversePageTree(), and ImportExport\getNewTCE().

Referenced by ImportExport\writeRecords_records().

writeSysFileResourceForLegacyImport ( $fileName,
  $fileId 
)
protected

Writes the file with the is $fileId to the legacy import folder. The file name will used from argument $fileName and the file was successfully created or an identical file was already found, $fileName will held the uid of the new created file record.

Parameters
string$fileNameThe file name for the new file. Value would be changed to the uid of the new created file record.
int$fileIdThe id of the file in data array
Returns
bool

Definition at line 3026 of file ImportExport.php.

References ImportExport\$legacyImportFolder, PathUtility\dirname(), ImportExport\error(), DuplicationBehavior\RENAME, and ImportExport\writeTemporaryFileFromData().

Referenced by ImportExport\processSoftReferences_saveFile(), and ImportExport\processSoftReferences_saveFile_createRelFile().

writeTemporaryFileFromData (   $fileId,
  $dataKey = 'files_fal' 
)
protected

Writes the file from import array to temp dir and returns the filename of it.

Parameters
string$fileId
string$dataKey
Returns
string Absolute filename of the temporary filename of the file

Definition at line 1898 of file ImportExport.php.

References ImportExport\error(), GeneralUtility\tempnam(), and GeneralUtility\writeFile().

Referenced by ImportExport\writeSysFileResourceForLegacyImport().

Member Data Documentation

$allowPHPScripts = false

Definition at line 149 of file ImportExport.php.

$alternativeFileName = array()
protected

Definition at line 422 of file ImportExport.php.

Referenced by ImportExport\getNewTCE().

$alternativeFilePath = array()
protected

Definition at line 427 of file ImportExport.php.

Referenced by ImportExport\getNewTCE().

$cache_getRecordPath = array()

Definition at line 293 of file ImportExport.php.

$checkPID_cache = array()

Definition at line 300 of file ImportExport.php.

$compress = false
$dat = array()
$defaultRecordIncludeFields = array('uid', 'pid')
protected

Definition at line 337 of file ImportExport.php.

$display_import_pid_record = array()

Definition at line 106 of file ImportExport.php.

$doesImport = false

Definition at line 97 of file ImportExport.php.

$dontCompress = false

Definition at line 235 of file ImportExport.php.

Referenced by ImportExport\doOutputCompress(), and ImportExport\init().

$enableLogging = false

Definition at line 156 of file ImportExport.php.

Referenced by ImportExport\getNewTCE().

$errorLog = array()

Definition at line 286 of file ImportExport.php.

$excludeMap = array()

Definition at line 214 of file ImportExport.php.

Referenced by ImportExport\setHeaderBasics().

$extensionDependencies = array()

Definition at line 228 of file ImportExport.php.

Referenced by ImportExport\setHeaderBasics().

$extFileResourceExtensions = 'html,htm,css'

Definition at line 249 of file ImportExport.php.

$fileadminFolderName = ''

Definition at line 76 of file ImportExport.php.

$fileIDMap = array()

Definition at line 170 of file ImportExport.php.

$filePathMap = array()
protected

Definition at line 432 of file ImportExport.php.

$fileProcObj = null
protected
$filesPathForImport = null
protected

Definition at line 412 of file ImportExport.php.

$force_all_UIDS = false

Definition at line 135 of file ImportExport.php.

$global_ignore_pid = false

Definition at line 128 of file ImportExport.php.

$iconFactory
protected

Definition at line 442 of file ImportExport.php.

$import_data = array()

Definition at line 279 of file ImportExport.php.

$import_mapId = array()

Definition at line 256 of file ImportExport.php.

$import_mode = array()

Definition at line 121 of file ImportExport.php.

$import_newId = array()

Definition at line 265 of file ImportExport.php.

$import_newId_pids = array()

Definition at line 272 of file ImportExport.php.

$includeExtFileResources = false

Definition at line 242 of file ImportExport.php.

$legacyImport = false
protected

Definition at line 351 of file ImportExport.php.

$legacyImportFolder = null
protected

Definition at line 356 of file ImportExport.php.

Referenced by ImportExport\writeSysFileResourceForLegacyImport().

$legacyImportMigrationRecords = array()
protected

Definition at line 397 of file ImportExport.php.

$legacyImportMigrationTables
protected
Initial value:
= array(
'tt_content' => array(
'image' => array(
'titleTexts' => 'titleText',
'description' => 'imagecaption',
'links' => 'image_link',
'alternativeTexts' => 'altText'
),
'media' => array(
'description' => 'imagecaption',
)
),
'pages' => array(
'media' => array()
),
'pages_language_overlay' => array(
'media' => array()
)
)

Definition at line 370 of file ImportExport.php.

$legacyImportTargetPath = '_imported/'
protected

Definition at line 363 of file ImportExport.php.

$maxExportSize = 10000000

Definition at line 191 of file ImportExport.php.

$maxFileSize = 1000000

Definition at line 177 of file ImportExport.php.

Referenced by ImportExport\export_addSysFile().

$maxRecordSize = 1000000

Definition at line 184 of file ImportExport.php.

$mode = ''

Definition at line 83 of file ImportExport.php.

Referenced by ImportExport\init().

$recordTypesIncludeFields = array()
protected

Definition at line 330 of file ImportExport.php.

$relOnlyTables = array()

Definition at line 199 of file ImportExport.php.

$relStaticTables = array()

Definition at line 207 of file ImportExport.php.

Referenced by ImportExport\setHeaderBasics().

$remainHeader = array()
protected

Definition at line 437 of file ImportExport.php.

$saveFilesOutsideExportFile = false
protected

Definition at line 402 of file ImportExport.php.

Referenced by ImportExport\setSaveFilesOutsideExportFile().

$showDiff = false

Definition at line 142 of file ImportExport.php.

$showStaticRelations = false

Definition at line 69 of file ImportExport.php.

$softrefCfg = array()

Definition at line 221 of file ImportExport.php.

Referenced by ImportExport\setHeaderBasics().

$softrefInputValues = array()

Definition at line 163 of file ImportExport.php.

$storageObjects = array()
protected

Definition at line 344 of file ImportExport.php.

$suggestedInsertUids = array()
$temporaryFilesPathForExport = null
protected

Definition at line 407 of file ImportExport.php.

Referenced by ImportExport\getTemporaryFilesPathForExport().

$unlinkFiles = array()
protected

Definition at line 417 of file ImportExport.php.

$update = false

Definition at line 90 of file ImportExport.php.