Documentation TYPO3 par Ameos |
Public Member Functions | |
init ($dontCompress=0, $mode='') | |
setHeaderBasics () | |
setCharset ($charset) | |
setMetaData ($title, $description, $notes, $packager_username, $packager_name, $packager_email) | |
addThumbnail ($imgFilepath) | |
setPageTree ($idH) | |
unsetExcludedSections ($idH) | |
flatInversePageTree ($idH, $a=array()) | |
flatInversePageTree_pid ($idH, $a=array(), $pid=-1) | |
export_addRecord ($table, $row, $relationLevel=0) | |
export_addDBRelations ($relationLevel=0) | |
export_addDBRelations_registerRelation ($fI, &$addR, $tokenID='') | |
export_addFilesFromRelations () | |
export_addFile ($fI, $recordRef='', $fieldname='') | |
getRelations ($table, $row) | |
getRelations_flexFormCallBack ($pParams, $dsConf, $dataValue, $dataValue_ext1, $dataValue_ext2, $structurePath) | |
getRelations_procFiles ($value, $conf, $uid) | |
getRelations_procDB ($value, $conf, $uid) | |
flatDBrels ($dbrels) | |
flatSoftRefs ($dbrels) | |
destPathFromUploadFolder ($folder) | |
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) | |
import_addFileNameToBeCopied ($fI) | |
setFlexFormRelations () | |
remapListedDBRecords_flexFormCallBack ($pParams, $dsConf, $dataValue, $dataValue_ext1, $dataValue_ext2, $path) | |
processSoftReferences () | |
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=0) | |
getNextFilePart ($fd, $unserialize=0, $name='') | |
loadContent ($filecontent) | |
getNextContentPart ($filecontent, &$pointer, $unserialize=0, $name='') | |
loadInit () | |
fixCharsets () | |
displayContentOverview () | |
traversePageTree ($pT, &$lines, $preCode='') | |
traversePageRecords ($pT, &$lines) | |
traverseAllRecords ($pT, &$lines) | |
singleRecordLines ($table, $uid, &$lines, $preCode, $checkImportInPidRecord=0) | |
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) | |
isReferenceField ($conf) | |
checkPID ($pid) | |
dontIgnorePid ($table, $uid) | |
doesRecordExist ($table, $uid, $fields='') | |
getRecordPath ($pid) | |
renderSelectBox ($prefix, $value, $optValues) | |
compareRecords ($databaseRecord, $importRecord, $table, $inverseDiff=FALSE) | |
getRTEoriginalFilename ($string) | |
& | getFileProcObj () |
error ($msg) | |
printErrorLog () | |
Public Attributes | |
$showStaticRelations = FALSE | |
$fileadminFolderName = 'fileadmin' | |
$mode = '' | |
$update = FALSE | |
$doesImport = FALSE | |
$display_import_pid_record = '' | |
$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 = 0 | |
$includeExtFileResources = 0 | |
$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 = 0 | |
$dat = array() | |
$fileProcObj = '' |
Definition at line 202 of file class.tx_impexp.php.
|
Returns a content part for a filename being build.
Definition at line 1352 of file class.tx_impexp.php. |
|
Add file relation entries for a record's rels-array
Definition at line 3045 of file class.tx_impexp.php. References t3lib_div::split_fileref(). |
|
Add DB relations entries for a record's rels-array
Definition at line 2980 of file class.tx_impexp.php. |
|
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
Definition at line 1618 of file class.tx_impexp.php. |
|
Sets a thumbnail image to the exported file
Definition at line 355 of file class.tx_impexp.php. |
|
Registers the substNEWids in memory.
Definition at line 1692 of file class.tx_impexp.php. References error(). |
|
Verifies that a table is allowed on a certain doktype of a page
Definition at line 3163 of file class.tx_impexp.php. References t3lib_div::trimExplode(). |
|
Returns true if directory exists and if it doesn't it will create directory and return true if that succeeded.
Definition at line 2364 of file class.tx_impexp.php. References error(), t3lib_div::getFileAbsFileName(), and t3lib_div::mkdir(). Referenced by processSoftReferences_saveFile_createRelFile(). |
|
Checking if a PID is in the webmounts of the user
Definition at line 3344 of file class.tx_impexp.php. Referenced by export_addRecord(). |
|
Compares two records, the current database record and the one from the import memory. Will return HTML code to show any differences between them!
Definition at line 3425 of file class.tx_impexp.php. References t3lib_BEfunc::getProcessedValue(), and t3lib_div::makeInstance(). |
|
This compiles and returns the data content for an exported file
Definition at line 1223 of file class.tx_impexp.php. |
|
Creates XML string from input array
Definition at line 1249 of file class.tx_impexp.php. |
|
Returns destination path to an upload folder given by $folder
Definition at line 1198 of file class.tx_impexp.php. |
|
Displays an overview of the header-content.
Definition at line 2631 of file class.tx_impexp.php. References t3lib_extMgm::isLoaded(). |
|
Checks if the record exists
Definition at line 3374 of file class.tx_impexp.php. References t3lib_BEfunc::getRecord(). |
|
Checks if the position of an updated record is configured to be corrected. This can be disabled globally and changed for elements individually.
Definition at line 3361 of file class.tx_impexp.php. |
|
Returns true if the output should be compressed.
Definition at line 1341 of file class.tx_impexp.php. |
|
Sets error message in the internal error log
Definition at line 3542 of file class.tx_impexp.php. Referenced by addToMapId(), checkOrCreateDir(), export_addDBRelations(), export_addFile(), export_addFilesFromRelations(), export_addRecord(), fixCharsets(), getNextContentPart(), getNextFilePart(), import_addFileNameToBeCopied(), loadFile(), processSoftReferences_saveFile(), processSoftReferences_saveFile_createRelFile(), setFlexFormRelations(), setRelations(), setRelations_db(), unlinkTempFiles(), and writeFileVerify(). |
|
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)
Definition at line 540 of file class.tx_impexp.php. References error(), export_addDBRelations_registerRelation(), export_addRecord(), t3lib_BEfunc::getRecord(), and includeSoftref(). |
|
Helper function for export_addDBRelations()
Definition at line 644 of file class.tx_impexp.php. References inclRelation(), includeSoftref(), isExcluded(), and isTableStatic(). Referenced by export_addDBRelations(). |
|
Adds a files content to the export memory
Definition at line 769 of file class.tx_impexp.php. References error(), getRTEoriginalFilename(), and t3lib_div::inList(). Referenced by export_addFilesFromRelations(). |
|
This adds all files in relations. Call this method AFTER adding all records including relations.
Definition at line 668 of file class.tx_impexp.php. References error(), export_addFile(), t3lib_div::getFileAbsFileName(), and includeSoftref(). |
|
Adds the record $row from $table. No checking for relations done here. Pure data.
Definition at line 490 of file class.tx_impexp.php. References checkPID(), error(), t3lib_div::fixed_lgd_cs(), flatDBrels(), flatSoftRefs(), t3lib_div::formatSize(), t3lib_BEfunc::getRecordTitle(), and getRelations(). Referenced by export_addDBRelations(). |
|
Fix charset of import memory if different from system charset
Definition at line 2576 of file class.tx_impexp.php. References error(). Referenced by loadInit(). |
|
DB relations flattend to 1-dim array. The list will be unique, no table/uid combination will appear twice.
Definition at line 1124 of file class.tx_impexp.php. Referenced by export_addRecord(). |
|
Recursively flattening the idH array (for setPageTree() function)
Definition at line 428 of file class.tx_impexp.php. Referenced by setPageTree(). |
|
Recursively flattening the idH array (for setPageTree() function), setting PIDs as values
Definition at line 451 of file class.tx_impexp.php. |
|
Soft References flattend to 1-dim array.
Definition at line 1150 of file class.tx_impexp.php. Referenced by export_addRecord(). |
|
Returns file processing object, initialized only once.
Definition at line 3509 of file class.tx_impexp.php. References t3lib_div::makeInstance(). Referenced by processSoftReferences_saveFile(), processSoftReferences_saveFile_createRelFile(), verifyFolderAccess(), and writeFileVerify(). |
|
Returns a new $TCE object
Definition at line 1712 of file class.tx_impexp.php. References t3lib_div::makeInstance(). Referenced by processSoftReferences(), setFlexFormRelations(), and setRelations(). |
|
Returns the next content part from the $filecontent
Definition at line 2535 of file class.tx_impexp.php. References error(). Referenced by loadContent(). |
|
Returns the next content part form the fileresource (t3d), $fd
Definition at line 2490 of file class.tx_impexp.php. References error(). Referenced by loadFile(). |
|
Returns the page title path of a PID value. Results are cached internally
Definition at line 3384 of file class.tx_impexp.php. References t3lib_BEfunc::getRecordPath(). |
|
Returns relation information for a $table/$row-array Traverses all fields in input row which are configured in TCA/columns It looks for hard relations to files and records in the TCA types "select" and "group"
Definition at line 897 of file class.tx_impexp.php. Referenced by export_addRecord(). |
|
Callback function for traversing the FlexForm structure in relation to finding file and DB references!
Definition at line 1004 of file class.tx_impexp.php. |
|
Check field configuration if it is a DB relation field and extract DB relations if any
Definition at line 1103 of file class.tx_impexp.php. |
|
Check field configuration if it is a file relation field and extract file relations if any
Definition at line 1053 of file class.tx_impexp.php. |
|
Creates the original file name for a copy-RTE image (magic type)
Definition at line 3492 of file class.tx_impexp.php. References t3lib_div::isFirstPartOfStr(). Referenced by export_addFile(), and processSoftReferences_saveFile(). |
|
Writes the file from import array to temp dir and returns the filename of it.
Definition at line 1845 of file class.tx_impexp.php. References error(), t3lib_div::tempnam(), and t3lib_div::writeFile(). Referenced by remapListedDBRecords_flexFormCallBack(), and setRelations(). |
|
Imports the internal data array to $pid.
Definition at line 1385 of file class.tx_impexp.php. |
|
Returns true if the input table name is to be included as relation
Definition at line 3297 of file class.tx_impexp.php. Referenced by export_addDBRelations_registerRelation(). |
|
Returns true if soft reference should be included in exported file.
Definition at line 3324 of file class.tx_impexp.php. References t3lib_div::inList(). Referenced by export_addDBRelations(), export_addDBRelations_registerRelation(), and export_addFilesFromRelations(). |
|
Init the object, both import and export
Definition at line 265 of file class.tx_impexp.php. References $dontCompress, and $mode. |
|
Returns true if the element should be excluded as static record.
Definition at line 3312 of file class.tx_impexp.php. Referenced by export_addDBRelations_registerRelation(), and setRelations_db(). |
|
Returns true if the TCA/columns field type is a DB reference field
Definition at line 3334 of file class.tx_impexp.php. |
|
Returns true if the input table name is to be regarded as a static relation (that is, not exported etc).
Definition at line 3283 of file class.tx_impexp.php. Referenced by export_addDBRelations_registerRelation(), and setRelations_db(). |
|
Loads T3D file content into the $this->dat array (This function can be used to test the output strings from ->compileMemoryToFileContent())
Definition at line 2517 of file class.tx_impexp.php. References getNextContentPart(), and loadInit(). |
|
Loads the header section/all of the $filename into memory
Definition at line 2447 of file class.tx_impexp.php. References error(), getNextFilePart(), loadInit(), and t3lib_div::xml2array(). |
|
Setting up the object based on the recently loaded ->dat array
Definition at line 2560 of file class.tx_impexp.php. References fixCharsets(). Referenced by loadContent(), and loadFile(). |
|
Returns a table with the error-messages.
Definition at line 3551 of file class.tx_impexp.php. References t3lib_div::view_array(). |
|
Processing of soft references
Definition at line 1993 of file class.tx_impexp.php. References t3lib_BEfunc::getFlexFormDS(), getNewTCE(), t3lib_BEfunc::getRecord(), t3lib_div::loadTCA(), t3lib_div::makeInstance(), processSoftReferences_flexFormCallBack(), processSoftReferences_substTokens(), and t3lib_div::xml2array(). |
|
Callback function for traversing the FlexForm structure in relation to remapping softreference relations
Definition at line 2084 of file class.tx_impexp.php. References processSoftReferences_substTokens(). Referenced by processSoftReferences(). |
|
Process a soft reference file
Definition at line 2187 of file class.tx_impexp.php. References $fileProcObj, error(), t3lib_div::getFileAbsFileName(), getFileProcObj(), getRTEoriginalFilename(), t3lib_div::isFirstPartOfStr(), processSoftReferences_saveFile_createRelFile(), and writeFileVerify(). Referenced by processSoftReferences_substTokens(). |
|
Create file in directory and return the new (unique) filename
Definition at line 2248 of file class.tx_impexp.php. References $fileProcObj, checkOrCreateDir(), error(), t3lib_div::getFileAbsFileName(), getFileProcObj(), t3lib_div::isFirstPartOfStr(), t3lib_div::mkdir(), t3lib_div::resolveBackPath(), verifyFolderAccess(), t3lib_div::writeFile(), and writeFileVerify(). Referenced by processSoftReferences_saveFile(). |
|
Substition of softreference tokens
Definition at line 2123 of file class.tx_impexp.php. References t3lib_BEfunc::getRecord(), processSoftReferences_saveFile(), and t3lib_div::testInt(). Referenced by processSoftReferences(), and processSoftReferences_flexFormCallBack(). |
|
Callback function for traversing the FlexForm structure in relation to remapping database relations
Definition at line 1951 of file class.tx_impexp.php. References import_addFileNameToBeCopied(), and setRelations_db(). Referenced by setFlexFormRelations(). |
|
Render input controls for import or export
Definition at line 3179 of file class.tx_impexp.php. |
|
Makes a selector-box from optValues
Definition at line 3401 of file class.tx_impexp.php. |
|
Set charset
Definition at line 320 of file class.tx_impexp.php. |
|
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!
Definition at line 1868 of file class.tx_impexp.php. References $dat, error(), t3lib_BEfunc::getFlexFormDS(), getNewTCE(), t3lib_BEfunc::getRecord(), t3lib_div::loadTCA(), t3lib_div::makeInstance(), remapListedDBRecords_flexFormCallBack(), and t3lib_div::xml2array(). |
|
Set header basics
Definition at line 296 of file class.tx_impexp.php. |
|
Sets meta data
Definition at line 335 of file class.tx_impexp.php. |
|
Sets the page-tree array in the export header and returns the array in a flattened version
Definition at line 393 of file class.tx_impexp.php. References flatInversePageTree(), and unsetExcludedSections(). |
|
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
Definition at line 1764 of file class.tx_impexp.php. References $dat, error(), getNewTCE(), import_addFileNameToBeCopied(), and setRelations_db(). |
|
Maps relations for database
Definition at line 1818 of file class.tx_impexp.php. References error(), isExcluded(), and isTableStatic(). Referenced by remapListedDBRecords_flexFormCallBack(), and setRelations(). |
|
Add entries for a single record
Definition at line 2823 of file class.tx_impexp.php. References t3lib_div::fixed_lgd_cs(), and t3lib_div::inList(). |
|
Selectorbox with export options for soft references
Definition at line 3207 of file class.tx_impexp.php. |
|
Go through ALL records (if the pages are displayed first, those will not be amoung these!)
Definition at line 2801 of file class.tx_impexp.php. |
|
Go through remaining pages (not in tree)
Definition at line 2774 of file class.tx_impexp.php. |
|
Go through page tree for display
Definition at line 2739 of file class.tx_impexp.php. |
|
Cleaning up all the temporary files stored in typo3temp/ folder
Definition at line 1726 of file class.tx_impexp.php. References error(), t3lib_div::isFirstPartOfStr(), and t3lib_div::unlink_tempfile(). |
|
Removes entries in the page tree which are found in ->excludeMap[]
Definition at line 406 of file class.tx_impexp.php. Referenced by setPageTree(). |
|
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.
Definition at line 2397 of file class.tx_impexp.php. References $fileProcObj, getFileProcObj(), and t3lib_div::isFirstPartOfStr(). Referenced by processSoftReferences_saveFile_createRelFile(). |
|
Writes a file from the import memory having $fileID to file name $fileName which must be an absolute path inside PATH_site
Definition at line 2337 of file class.tx_impexp.php. References $fileProcObj, error(), t3lib_div::getFileAbsFileName(), getFileProcObj(), t3lib_div::split_fileref(), and t3lib_div::writeFile(). Referenced by processSoftReferences_saveFile(), and processSoftReferences_saveFile_createRelFile(). |
|
Writing pagetree/pages to database:
Definition at line 1426 of file class.tx_impexp.php. |
|
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.
Definition at line 1481 of file class.tx_impexp.php. |
|
Write all database records except pages (writtein in writeRecords_pages())
Definition at line 1519 of file class.tx_impexp.php. |
|
Organize all updated record to their new positions. Only used for updates
Definition at line 1569 of file class.tx_impexp.php. |