Package DE_EPAGES::Product::API::CSV::ProductExportDriver
This module implements a handler to export shop products via csv
Functions
- getObjectAttributeValue
- writeLines
getObjectAttributeValue
Syntax |
my $Value = $self->getObjectAttributeValue($Product, $hAttribute);
|
Input |
- $Product (object)
- Product object
- $hAttribute (ref.hash)
- properties of object attribute to get:
- Alias - attribute alias, e.g. Alias, Color
- Type - Attribute type, e.g. LocalizedString
- IsObject - 0 or 1, set to 1 if attribute IsObject
- LanguageID - only set if Type =~ /Localized/
- CurrencyID - only set if Type eq 'Price'
|
Return |
- $Value (scalar)
- value of attribute for object
|
writeLines
Writes one line to the CSV file for each element of items.
LoadObject of each itemid of $self->items
would be exported via function exportLine of package
DE_EPAGES::CSVExportImport::API::CSV::ObjectExportDriver.
Syntax |
$self->writeLines();
|