Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 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.

...

ClassarchiveImportedDatapostImportHandlerhandleImportException
Abstract

Abstract method, to be implemented.

...

Calls event "beforeArchiveImportedData" and then archiveImportedData.

handleImportException

Empty sub Method here.

...

DirectoryCreates a zip out of the importFolder (if enabled)as parent (Abstract)

as parent (Abstract)

SingleUploadsas parent (Directory)removes the importRootFolderremoves the importRootFolder
Ziprename uploaded zip, or delete it, if feature disabled, throws error if exists alreadycall parent (Abstract) and removes importFolderremoves importFolder
ZippedUrldelete the uploaded zip if feature disabled  

editor_Models_Import_DataProvider_SingleUploads

editor_Models_Import_DataProvider_Directory

editor_Models_Import_DataProvider_Zip

...