ePages 6.10 - DE_EPAGES/Customer/API/CSV/CustomerImportHandler.pm

Package DE_EPAGES::Customer::API::CSV::CustomerImportHandler

This module implements a handler to export customer data to a CVS file. See DE_EPAGES::Customer::API::CSV::CustomerExportImport for usage examples.

Base
DE_EPAGES::ShopCSVExportImport::API::CSV::ShopObjectImportHandler

Functions

baseAttributeClassAlias
getUsedAttribute
importSpecialData

baseAttributeClassAlias

return Base AttributeClass Alias, here : 'CustomerClass'

Syntax
$self->baseAttributeClassAlias();
Return
$BaseAttributeClassAlias (string)
attribute class alias of normal attributes

getUsedAttribute

return attribute info, called by analyzeHeaderLine throws Error 'UNKNOWN_ATTR' if $hHeader->{'AliasString'} isn't a key of $self->attributes call function testHeaderColumn before return $hAttribute

Syntax
$self->getUsedAttribute($HeaderString, $ColumnIndex);
Input
$HeaderString (string)
header string
$ColumnIndex (integer)
index of current column
Return
$hAttribute (ref.hash)
properties of column of CSV file with following keys
  • Attribute | attribute object | object
  • Alias | alias of the attribute | string
  • AliasString | alias string of the column e.g Shoe/ShoeWeight/en | string
  • ClassAlias | alias of the attribute class e.g. Shoe | string
  • HeaderString | header string of the column e.g 'Schuh/Gewicht/English [Shoe/ShoeWeight/en]' | string
  • IsBaseClassAttribute | 0 or 1, set to 1 if attribute is from base class | boolean
  • IsObject | 0 or 1, set to 1 if Attribute IsObject | boolean
  • Type | Attribute type, e.g. LocalizedString | String
  • LanguageID | only set if Type =~ /Localized/ | Integer
  • CurrencyID | only set if Type eq 'Price' | String
  • TaxModel | 0 (==net) or 1, only set if Type eq 'Price' | Integer

importSpecialData

possibility to import special object data, called by importObject

Syntax
$self->importSpecialData($Object, $hAttributeValues);
Input
$Object (object)
object which is imported
$hAttributeValues (ref.hash)
attribute values