DataProviders provide a unified way, how import data flows into Translate5.

All DataProviders reside under the name space "editor_Models_Import_DataProvider_".

Depending on Translate5 default import or client specific interfaces, import data can be specified in the following forms:

In general each DataProvider converts its data to a directory structure (importRootFolder) consumed finally by the Importer.

In addition the DataProviders can:

This three steps are handled slightly different by the existing DataProviders.

ClassarchiveImportedDatapostImportHandlerhandleImportException
Abstract

Abstract method, to be implemented.

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)