CurrencyValueAttributeImportRules Class Reference

Inheritance diagram for CurrencyValueAttributeImportRules:
NonDerivedAttributeImportRules AttributeImportRules

Public Member Functions

 resolveValueForImport ($value, $columnName, $columnMappingData, ImportSanitizeResultsUtil $importSanitizeResultsUtil)

Static Public Member Functions

static getSanitizerUtilTypesInProcessingOrder ()

Static Protected Member Functions

static getAllModelAttributeMappingRuleFormTypesAndElementTypes ()

Detailed Description

Import rules for any attributes that are a CurrencyValue model.

Definition at line 40 of file CurrencyValueAttributeImportRules.php.


Member Function Documentation

static getAllModelAttributeMappingRuleFormTypesAndElementTypes (  )  [static, protected]

Returns mapping rule form and the associated element to use. Override to specify as many pairings as needed. This method is used for mapping rule form/element pairings that are available for both types of columns.

Returns:
array of MappingRuleForm/Element pairings.

Reimplemented from AttributeImportRules.

Definition at line 42 of file CurrencyValueAttributeImportRules.php.

static getSanitizerUtilTypesInProcessingOrder (  )  [static]
Returns:
array of sanitizer util names. The sanitizer utils in the array are in the order that they will be processed during the import.

Reimplemented from AttributeImportRules.

Definition at line 49 of file CurrencyValueAttributeImportRules.php.

resolveValueForImport ( value,
columnName,
columnMappingData,
ImportSanitizeResultsUtil importSanitizeResultsUtil 
)

There is a special way you can import rateToBase and currencyCode for an amount attribute. if the column data is formatted like: $54.67__1.2__USD then it will split the column and properly handle rate and currency code. Eventually this will be exposed in the user interface

Parameters:
mixed $value
string $columnName
array $columnMappingData
ImportSanitizeResultsUtil $importSanitizeResultsUtil
Returns:
array

Reimplemented from NonDerivedAttributeImportRules.

Definition at line 65 of file CurrencyValueAttributeImportRules.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Wed Dec 13 07:10:23 2017