ePages 6.11.0 - DE_EPAGES/Tax/API/CSV/TaxExportDriver.pm

Package DE_EPAGES::Tax::API::CSV::TaxExportDriver

This module implements a handler to export shop TaxMatrix via csv

Base
DE_EPAGES::ShopCSVExportImport::API::CSV::ShopObjectExportDriver
Example
use DE_EPAGES::Tax::API::CSV::TaxExportDriver;
DE_EPAGES::Tax::API::CSV::TaxExportDriver->exportCSV($FileName, $hFileFormat, $aColumns, $Shop );

Functions

getValues
items
writeLines

getValues

returns the values of the attributes from function columns(), uses function getObjectAttributeValue, formats the value via function DE_EPAGES::CSVExportImport::API::Tools::FormatValue()

Syntax
my $aValues = $self->getValues;
Return
$aValues (ref.array.scalar)
values of attributes ($self->columns) for object

items

Returns the objects to export, throws a Warning 'NO_ITEMS' if no items, set Monitor 'Total' if defined $self->monitor

Syntax
my $Items = $self->items();
Return
$aaData (ref.array.array.string)
parameter of exportCSV

writeLines

Writes one line to the CSV file for each element of items. LoadObject of each itemid of $self->items would be exported via function exportLine of package DE_EPAGES::CSVExportImport::API::CSV::ObjectExportDriver.

Syntax
$self->writeLines();