All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions | Static Protected Member Functions
CurrencyValueAttributeImportRules Class Reference
Inheritance diagram for CurrencyValueAttributeImportRules:
NonDerivedAttributeImportRules AttributeImportRules

Public Member Functions

 resolveValueForImport ($value, $columnName, $columnMappingData, ImportSanitizeResultsUtil $importSanitizeResultsUtil)
 
- Public Member Functions inherited from NonDerivedAttributeImportRules
 __construct ($model, $attributeName, $explicitReadWriteModelPermissions=null)
 
 getDisplayLabel ()
 
 getModelAttributeName ()
 
 getRealModelAttributeNames ()
 
 resolveValueForImport ($value, $columnName, $columnMappingData, ImportSanitizeResultsUtil $importSanitizeResultsUtil)
 
 getPenultimateModelClassName ()
 
 setPenultimateModelClassName ($penultimateModelClassName)
 
 getPenultimateAttributeName ()
 
 setPenultimateAttributeName ($penultimateAttributeName)
 
- Public Member Functions inherited from AttributeImportRules
 __construct ($model, $explicitReadWriteModelPermissions=null)
 
 getModelClassName ()
 
 getExplicitReadWriteModelPermissions ()
 
 getRealModelAttributeNames ()
 
 getDisplayLabelByAttributeName ($attributeName)
 

Static Public Member Functions

static getSanitizerUtilTypesInProcessingOrder ()
 
- Static Public Member Functions inherited from AttributeImportRules
static getType ()
 
static getModelAttributeMappingRuleFormTypesAndElementTypes ($type)
 
static getSanitizerUtilTypesInProcessingOrder ()
 
static getExtraColumnUsableCountOfModelAttributeMappingRuleFormTypesAndElementTypes ()
 

Static Protected Member Functions

static getAllModelAttributeMappingRuleFormTypesAndElementTypes ()
 
- Static Protected Member Functions inherited from AttributeImportRules
static getAllModelAttributeMappingRuleFormTypesAndElementTypes ()
 
static getExtraColumnOnlyModelAttributeMappingRuleFormTypesAndElementTypes ()
 
static getImportColumnOnlyModelAttributeMappingRuleFormTypesAndElementTypes ()
 

Additional Inherited Members

- Protected Attributes inherited from NonDerivedAttributeImportRules
 $attributeName
 
 $penultimateModelClassName
 
 $penultimateAttributeName
 
- Protected Attributes inherited from AttributeImportRules
 $model
 
 $explicitReadWriteModelPermissions = null
 

Detailed Description

Import rules for any attributes that are a CurrencyValue model.

Definition at line 40 of file CurrencyValueAttributeImportRules.php.

Member Function Documentation

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

Definition at line 65 of file CurrencyValueAttributeImportRules.php.


The documentation for this class was generated from the following file:
Generated on Fri Feb 28 2020 07:10:48