...
- archive the data to be imported, Method "archiveImportedData". Archiving only if configured: runtimeOptions.import.createArchivZip
- handle file clean up on import exceptions, Method "postImportHandler"
- provide a post import handler, Method "handleImportException"
This three steps are handled slightly different by the existing DataProviders.
...
Class | archiveImportedData | postImportHandler | handleImportException |
---|---|---|---|
Abstract | Abstract method, to be implemented. |
...
Calls event "beforeArchiveImportedData" and then archiveImportedData. |
handleImportException
Empty sub Method here. |
...
Directory | Creates a zip out of the importFolder (if enabled) | as parent (Abstract) | as parent (Abstract) |
SingleUploads | as parent (Directory) | removes the importRootFolder | removes the importRootFolder |
Zip | rename uploaded zip, or delete it, if feature disabled, throws error if exists already | call parent (Abstract) and removes importFolder | removes importFolder |
ZippedUrl | delete the uploaded zip if feature disabled |
editor_Models_Import_DataProvider_SingleUploads
editor_Models_Import_DataProvider_Directory
editor_Models_Import_DataProvider_Zip
...