1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-25 00:41:52 +02:00

Closes #5094 - 'fields' option added to e107Export method. Accepts comma separated list.

This commit is contained in:
camer0n
2023-11-01 14:27:25 -07:00
parent 100e28ed2b
commit 09eddd8911

View File

@@ -1067,7 +1067,8 @@ class xmlClass
$eQry = " 1 ORDER BY ".$primaryKey." ASC";
}
e107::getDb()->select($eTable, "*", $eQry);
$fields = !empty($options['fields']) ? $options['fields'] : '*';
e107::getDb()->select($eTable, $fields, $eQry);
$text .= "\t<dbTable name=\"".$eTable."\">\n";
// $count = 1;
while($row = e107::getDb()->fetch())