![]() |
|
|
Article Options |
|
csv-class for import-/export-functions in own addons
by
Rating:
I coded this csv-class for vB because I needed a decent import-/export-function for my own addons. This class is published as a so-called 'development-class' and it would be nice if this class is going to be more developed with your help. Coders can use this simple class in their addons if they need to create backups of tables in the database or import data into it. Importing a .csv-file: The class is going to be called like this:
and the variables are:
This data needs to get imported with the following options:
Field id is getting ignored while import (in cases where you don's want the id to get imported and to avoid db-errors), the values for userid and username are getting changed into 1 and admin while import. If $optionfields is not defined while the class is getting called, the table will be imported like it is without any . Export into a .csv-Datei: This function is similar to the import-function:
and the variables are:
If $optionfields is not defined while using the export-function, the table is getting exported without changes. No members have liked this post.
Last edited by Vossi : 06 Aug 2008 at 15:47. |
||||||||||||||||
|
Views: 1448
|
||||||||||||||||
![]() |
«
Previous Article
|
Next Article
»
Similar Article
|
||||
| Article | Author | Type | Replies | Last Post |
| Import/Export BBCodes | Dream | vBulletin 3.5 Add-ons | 12 | 25 Sep 2011 15:50 |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Article Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 07:38.



