ePages 7.38.0 - DE_EPAGES/ProductPortal/API/CSV/ProductPortalExportImport.pm

Package DE_EPAGES::ProductPortal::API::CSV::ProductPortalExportImport

This module implements a handler to export products to csv for REST portals

Base
DE_EPAGES::Product::API::CSV::ProductExportImport

Functions

csvAttributes
csvExport
exportDriver

csvAttributes

Return list of exportable csv attributes.

Syntax
csvAttributes( $Shop, $LocaleID, $aLanguageCode2s );
Input
$Shop (object)
shop object
$LocaleID (string)
locale identifier (e.g. en_GB)
$aLanguageCode2s (ref.array.string)
array of languages identified by code2
Return
$aGeneratedColumns (refarray)
list of attributes selected

csvExport

It is overwritted just to send the nooutput attribute to the method exportDriver

Syntax
$Driver->csvExport($Shop, $PathFileName, $hFileFormat, $aObjects);
Input
$Shop (object)
alias of shop
$PathFileName (string)
CSV file name
$hFileFormat (ref.hash)
defines what to export
  • LanguageCode2s - list of ISO language codes. defines which
    languages are exported. If the list is empty, then all
    languages are exported. - array of strings
  • LocaleID - locale id - string
$aObjects (ref.array.object)
list of exportable objects

exportDriver

Controls the driver package that will be returned in order to hide the monitor output and return the specified driver package

Syntax
$Driver->exportDriver();
Return
$DriverPackage (string)
package to driver