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.

postImportHandler

Calls event "beforeArchiveImportedData" and then archiveImportedData.

...

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
Zip

rename uploaded zip, or delete it, if feature disabled,

throws error if exists already

call parent (Abstract) and removes importFolderremoves importFolder
ZippedUrldelete the uploaded zip if feature disabledas parent (Zip)

as parent (Zip)

    

editor_Models_Import_DataProvider_SingleUploads

editor_Models_Import_DataProvider_Directory

editor_Models_Import_DataProvider_Zip

...