All Data Structures Functions Variables Pages
Public Member Functions
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)
 
- Public Member Functions inherited from AttributeImportRules
 __construct ($model, $explicitReadWriteModelPermissions=null)
 
 getModelClassName ()
 
 getExplicitReadWriteModelPermissions ()
 
 getRealModelAttributeNames ()
 
 getDisplayLabelByAttributeName ($attributeName)
 

Additional Inherited Members

- Static Public Member Functions inherited from AttributeImportRules
static getType ()
 
static getModelAttributeMappingRuleFormTypesAndElementTypes ($type)
 
static getSanitizerUtilTypesInProcessingOrder ()
 
static getExtraColumnUsableCountOfModelAttributeMappingRuleFormTypesAndElementTypes ()
 
- Static Protected Member Functions inherited from AttributeImportRules
static getAllModelAttributeMappingRuleFormTypesAndElementTypes ()
 
static getExtraColumnOnlyModelAttributeMappingRuleFormTypesAndElementTypes ()
 
static getImportColumnOnlyModelAttributeMappingRuleFormTypesAndElementTypes ()
 
- Protected Attributes inherited from AttributeImportRules
 $model
 
 $explicitReadWriteModelPermissions = null
 

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

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()

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

Definition at line 76 of file DerivedAttributeImportRules.php.


The documentation for this class was generated from the following file:
Generated on Fri Apr 3 2020 07:10:53