ePages 6.11.0 - DE_EPAGES/Billiger/API/CSV/BilligerProductsExportDriver.pm

Package DE_EPAGES::Billiger::API::CSV::BilligerProductsExportDriver

This module implements a csv driver to export object Billiger products

Example
use DE_EPAGES::Billiger::API::CSV::BilligerProductsExportDriver;

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

Functions

descriptionAttribute
exportCSV
isProductValidPortal
replacePipesAndQuotes

descriptionAttribute

used description attribute of portal config.

Syntax
$DescriptionAttribute = $self->descriptionAttribute;
Return
$DescriptionAttribute (string)
description attribute

exportCSV

exports data (2 dim. array) into a file. sets default file format parameters : sep_char = "|" , always_quote = 1 , encoding = encoding(utf-8)

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);

replacePipesAndQuotes

return $InputString without pipe and quote characters

Syntax
$InputString = replacePipesAndQuotes($InputString);