NAME
Kernel::System::ImportExport::FormatBackend::CSV – import/export backend for CSV
DESCRIPTION
All functions to import and export a csv format
new()
Create an object
use Kernel::System::ObjectManager;
local $Kernel::OM = Kernel::System::ObjectManager->new();
my $ImportExportCSVBackendObject = $Kernel::OM->Get('Kernel::System::ImportExport::FormatBackend::CSV');
FormatAttributesGet()
Get the format attributes of a format as array/hash reference
my $Attributes = $FormatBackend->FormatAttributesGet(
UserID => 1,
);
MappingFormatAttributesGet()
Get the mapping attributes of an format as array/hash reference
my $Attributes = $FormatBackend->MappingFormatAttributesGet(
UserID => 1,
);
ImportDataGet()
Get import data as 2D-array reference
my $ImportData = $FormatBackend->ImportDataGet(
TemplateID => 123,
SourceContent => $StringRef, # (optional)
UserID => 1,
);
ExportDataSave()
Export one row of the export data
my $DestinationContent = $FormatBackend->ExportDataSave(
TemplateID => 123,
ExportDataRow => $ArrayRef,
UserID => 1,
);
