Package DE_EPAGES::Product::API::CSV::ProductTypeExportDriver
This module implements a handler to export shop producttypes via csv
Functions
- getObjectAttributeValue
- getValues
- 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
|
getValues
returns the values of the attributes from function columns(),
uses function getObjectAttributeValue,
formats the value via function DE_EPAGES::CSVExportImport::API::Tools::FormatValue()
Syntax |
my $aValues = $self->getValues;
|
Output |
- $aValues (ref.array.scalar)
- values of attributes ($self->columns) 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();
|