I need to write a module that imports data from the Xoops CMS.

If I am using the Import / Export API then I assume I will need to write a 'get' engine, right?

My understanding is that the provided db engine is basically a "drupal db engine", it cannot be used for other databases.

Please let me know if I am headed the right direction with this.

Thanks

Comments

Sunil Mohan’s picture

> If I am using the Import / Export API then I assume I will need to write a 'get' engine, right?

If you have exported your Xoops database into XML or CSV then you need not write a get engine becuase get engines exist for these two file formats.

> My understanding is that the provided db engine is basically a "drupal db engine", it cannot be used for other databases.

Import/Export API is a drupal module and you can't use it (atleast with out modifications) with other CMSes. You need to figure out a way to export Xoops database to XML or CSV and then you can use the Import/Export API to import that data.

sun’s picture

Status: Active » Closed (fixed)

@#1: That is not true.

Import/Export API allows you to import and export data from any source to any source - if you write the corresponding engine(s) and data handlers.

Additionally, to quote the original author of this API:

Although the API is already working and is somewhat stable (i.e. it's not particularly volatile), it is still in the alpha stage, and is for developer consumption only.