Package DE_EPAGES::PriceMinister::API::CSV::PriceMinisterExportDriver
This module implements a csv driver to export object PriceMinister products
Example |
use DE_EPAGES::PriceMinister::API::CSV::PriceMinisterExportDriver; my $Driver = DE_EPAGES::PriceMinister::API::CSV::PriceMinisterExportDriver->new( Handler => $Handler ); $Driver->exportCSV; |
Functions
exportCSV
exports data (2 dim. array) into a file. sets default file format parameters : sep_char = ";" , always_quote = 1 , encoding = utf8
Syntax |
$Exporter->exportCSV($FileName, $hFormat, $aColumns, $ViewObject, $aObjects ); |
Input |
|
Return |
|
exportLine
Writes one line to the CSV file. Gets the values of the current export item from the function getValues. Increments the monitor counter if defined $self->monitor.
Syntax |
$self->exportLine(); |
Return |
|
getExportValues
helper method of exportLine to convert column names to methods names of this exporter and calls the method to get the values of the exported object. The order of return values depends on order of column names.
Syntax |
$self->getExportValues($Product); |
Input |
|
Return |
|
isProductValid
Throws error if not valid, (not visible).
Syntax |
$self->isProductValid; |
Input |
|
Return |
|
writeHeader
Writes the header line using the attribute names of the columns.
Syntax |
$self->writeHeader(); |