NonDerivedAttributeImportRules Class Reference

Inheritance diagram for NonDerivedAttributeImportRules:
AttributeImportRules AfterSaveActionNonDerivedAttributeImportRules CheckBoxAttributeImportRules CreatedByUserAttributeImportRules CreatedDateTimeAttributeImportRules CurrencyValueAttributeImportRules DateAttributeImportRules DateTimeAttributeImportRules DecimalAttributeImportRules DropDownAttributeImportRules EmailAttributeImportRules IdAttributeImportRules ImportModelTestItem2AttributeImportRules IntegerAttributeImportRules LatestActivityDateTimeAttributeImportRules ModelAttributeImportRules ModifiedByUserAttributeImportRules ModifiedDateTimeAttributeImportRules MultiSelectDropDownAttributeImportRules PhoneAttributeImportRules TextAreaAttributeImportRules TextAttributeImportRules UrlAttributeImportRules UsernameAttributeImportRules

Public Member Functions

 __construct ($model, $attributeName)
 getDisplayLabel ()
 getModelAttributeName ()
 getRealModelAttributeNames ()
 resolveValueForImport ($value, $columnName, $columnMappingData, ImportSanitizeResultsUtil $importSanitizeResultsUtil)
 getPenultimateModelClassName ()
 setPenultimateModelClassName ($penultimateModelClassName)
 getPenultimateAttributeName ()
 setPenultimateAttributeName ($penultimateAttributeName)

Protected Attributes

 $attributeName
 $penultimateModelClassName
 $penultimateAttributeName

Detailed Description

Base class for defining a non-derived attribute's import rules.

Definition at line 40 of file NonDerivedAttributeImportRules.php.


Member Function Documentation

getRealModelAttributeNames (  ) 

Provides the same information as

See also:
getModelAttributeName. In the case of DerivedAttributeImportRules this produces only the attributes that the derived attribute corresponds to.
AttributeImportRules::getRealModelAttributeNames()
Returns:
array

Reimplemented from AttributeImportRules.

Definition at line 71 of file NonDerivedAttributeImportRules.php.

resolveValueForImport ( value,
columnName,
columnMappingData,
ImportSanitizeResultsUtil importSanitizeResultsUtil 
)

Given a value and mapping data, run each sanitizer and process any messages or error information into the ImportSanitizeResultsUtil object provided.

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

Reimplemented in CurrencyValueAttributeImportRules, and IdAttributeImportRules.

Definition at line 85 of file NonDerivedAttributeImportRules.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Thu Jul 27 07:10:27 2017