ePages 6.10 - DE_EPAGES/Content/API/CSV/ContentExportImport.pm

Package DE_EPAGES::Content::API::CSV::ContentExportImport

This module implements the high level interface for import and export of categories and pages to CVS files.

Functions

csvExport
csvImport
new
warningCodes

csvExport

Exports all categories and pages of the shop to a CSV file.

Syntax
$Driver->csvExport($Shop, $PathFileName, $hFileFormat);
Example
my $Driver = DE_EPAGES::Content::API::CSV::ContentExportImport->new;
$Driver->csvExport( $Shop, 'Categories.csv', {
        'LanguageCode2s' => ['de', 'en'],
        'LocaleID' => 'de_DE',
} );
Input
$Path (string)
Path to shop object
$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.integer)
list of object ids, if undef all categories where exported

csvImport

Imports categories and pages from a CSV file into a shop.

Syntax
$Driver->csvImport($Shop, $PathFileName, $hFileFormat);
Example
my $Driver = DE_EPAGES::Content::API::CSV::ContentExportImport->new;
$Driver->csvImport( $Shop , 'Categories.csv', {
        'LanguageCode2s' => ['de', 'en'],
        'LocaleID' => 'de_DE',
} );
Input
$Path (string)
Path to shop object
$PathFileName (string)
CSV file name
$hFileFormat (ref.hash)
defines what to export
  • LanguageCode2s - list of ISO language codes. defines which
    languages are imported. If the list is empty, then all
    languages are imported. - array of strings
  • LocaleID - locale id - string

new

Creates a new csv import/export driver.

Syntax
$Driver= DE_EPAGES::Content::API::CSV::ContentExportImport->new;
Return
$Driver (object)
import/export driver

warningCodes

Returns the warning codes for csv export.

Syntax
$aWarningCodes = $Driver->warningCodes();
Return
$aWarningCodes (array.string)
warning codes