e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
320 stars 214 forks source link

Allow developers to choose which fields to export in e107Export(). #5094

Closed CaMer0n closed 11 months ago

CaMer0n commented 11 months ago

Motivation

Current, when used to export table data, e107Export() will always export every field in the table. Sometimes fields need to be omitted, such as the PRIMARY id, in the case of appending to an existing database table.

Proposed Solution

Add a 'fields' option - a list of comma separated fields, that should be in the table export.