constant MIGRATE_CHUNK_SEPARATOR in Migrate 6.2
Same name and namespace in other branches
- 7.2 plugins/sources/files.inc \MIGRATE_CHUNK_SEPARATOR
When we migrate HTML files, the IDs of each item is the filename. If however we are splitting up each HTML file into chunks that become separate nodes, we create IDs that contain both the filename and the chunk ID, for example:
/var/html/01.html-?MIGRATECHUNK?-5
This would be chunk 5 of the file 01.html. Obviously this separator can never legitimately be part of an HTML filename.
2 uses of MIGRATE_CHUNK_SEPARATOR
- MigrateItemFile::getItem in plugins/
sources/ files.inc - Return an object representing a file or piece thereof.
- MigrateListFiles::getIDsFromFiles in plugins/
sources/ files.inc - Given an array generated from file_scan_directory(), parse out the IDs for processing and return them as an array.
File
- plugins/
sources/ files.inc, line 18 - Support for migration from files sources.
Code
define('MIGRATE_CHUNK_SEPARATOR', '-?MIGRATECHUNK?-');