DerivedAttributeImportRules Class Reference

Inheritance diagram for DerivedAttributeImportRules:
AttributeImportRules AfterSaveActionDerivedAttributeImportRules ContactStateAttributeImportRules FullNameAttributeImportRules ModelDerivedAttributeImportRules PasswordAttributeImportRules UserStatusAttributeImportRules LeadStateAttributeImportRules AccountDerivedAttributeImportRules ContactDerivedAttributeImportRules ImportModelTestItem3DerivedAttributeImportRules OpportunityDerivedAttributeImportRules

Public Member Functions

 getModelAttributeName ()
 getRealModelAttributeNames ()
 getDisplayLabel ()
 resolveValueForImport ($value, $columnName, $columnMappingData, ImportSanitizeResultsUtil $importSanitizeResultsUtil)

Detailed Description

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

Definition at line 40 of file DerivedAttributeImportRules.php.


Member Function Documentation

getRealModelAttributeNames (  ) 

Override when there are real model attributes that the derived attribute correspond to.

See also:
AttributeImportRules::getRealModelAttributeNames()
Returns:
array

Reimplemented from AttributeImportRules.

Reimplemented in ContactStateAttributeImportRules, FullNameAttributeImportRules, ModelDerivedAttributeImportRules, PasswordAttributeImportRules, and UserStatusAttributeImportRules.

Definition at line 53 of file DerivedAttributeImportRules.php.

getDisplayLabel (  ) 

Override in any derived children classes to ensure a display label is available.

See also:
AttributeImportRules::getDisplayLabel()

Reimplemented in ContactStateAttributeImportRules, FullNameAttributeImportRules, ModelDerivedAttributeImportRules, PasswordAttributeImportRules, and UserStatusAttributeImportRules.

Definition at line 62 of file DerivedAttributeImportRules.php.

resolveValueForImport ( value,
columnName,
columnMappingData,
ImportSanitizeResultsUtil importSanitizeResultsUtil 
)

Derived attribute import rules need to implement this method individually. Override for each derived atribute import rule and implement as needed.

Parameters:
mixed $value
string $columnName
array $columnMappingData
ImportSanitizeResultsUtil $importSanitizeResultsUtil
Exceptions:
NotImplementedException 

Reimplemented in ContactStateAttributeImportRules, FullNameAttributeImportRules, ModelDerivedAttributeImportRules, PasswordAttributeImportRules, and UserStatusAttributeImportRules.

Definition at line 76 of file DerivedAttributeImportRules.php.


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