#328 Added the capability to import/export link sets in CSV format

SVN:trunk[1129]
This commit is contained in:
Romain Quetiez
2011-03-14 14:11:08 +00:00
parent 52a47b193d
commit f3cc490295
11 changed files with 422 additions and 90 deletions

View File

@@ -42,6 +42,8 @@ $currentOrganization = utils::ReadParam('org_id', '');
// Main program
$sExpression = utils::ReadParam('expression', '');
$sFormat = strtolower(utils::ReadParam('format', 'html'));
$sFields = utils::ReadParam('fields', ''); // CSV field list
$oP = null;
if (!empty($sExpression))
@@ -77,7 +79,7 @@ if (!empty($sExpression))
case 'csv':
$oP = new CSVPage("iTop - Export");
cmdbAbstractObject::DisplaySetAsCSV($oP, $oSet);
cmdbAbstractObject::DisplaySetAsCSV($oP, $oSet, array('fields' => $sFields));
break;
case 'xml':