ePages 6.10 - DE_EPAGES/Twenga/API/CSV/TwengaProductsExportDriver.pm

Package DE_EPAGES::Twenga::API::CSV::TwengaProductsExportDriver

This module implements a csv driver to export object Twenga products

Example
use DE_EPAGES::Twenga::API::CSV::TwengaProductsExportDriver;

my $Driver = DE_EPAGES::Twenga::API::CSV::TwengaProductsExportDriver->new(
    Handler => $Handler
);
$Driver->exportCSV;

Functions

exportCSV
isProductValidPortal

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
$FileName (string)
export file
$hFormat (ref.hash)
export file format
$aColumns (attribute object)
column attributes (used for header and values)
$ViewObject (object)
object to view monitor should be the shop
$aObjects (ref.array.object)
list of objects

isProductValidPortal

return 1 if product is visible and has name and has a price

Syntax
$self->isProductValidPortal($Product);