All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions | Static Protected Member Functions
ModelDerivedAttributeImportRules Class Reference
Inheritance diagram for ModelDerivedAttributeImportRules:
DerivedAttributeImportRules AttributeImportRules AccountDerivedAttributeImportRules ContactDerivedAttributeImportRules ImportModelTestItem3DerivedAttributeImportRules OpportunityDerivedAttributeImportRules

Public Member Functions

 getDisplayLabel ()
 
 getRealModelAttributeNames ()
 
 resolveValueForImport ($value, $columnName, $columnMappingData, ImportSanitizeResultsUtil $importSanitizeResultsUtil)
 
- Public Member Functions inherited from DerivedAttributeImportRules
 getModelAttributeName ()
 
 getRealModelAttributeNames ()
 
 getDisplayLabel ()
 
 resolveValueForImport ($value, $columnName, $columnMappingData, ImportSanitizeResultsUtil $importSanitizeResultsUtil)
 
- Public Member Functions inherited from AttributeImportRules
 __construct ($model, $explicitReadWriteModelPermissions=null)
 
 getModelClassName ()
 
 getExplicitReadWriteModelPermissions ()
 
 getRealModelAttributeNames ()
 
 getDisplayLabelByAttributeName ($attributeName)
 

Static Public Member Functions

static getSanitizerUtilTypesInProcessingOrder ()
 
static getDerivedAttributeName ()
 
static getDerivedModelClassName ()
 
- 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 AttributeImportRules
 $model
 
 $explicitReadWriteModelPermissions = null
 

Detailed Description

Base class for a derived relation attribute. This would occur if the relation attribute is not specifically defined on a model, but instead a casted up model is specifically defined.

See Also
DefaultModelNameIdDerivedAttributeMappingRuleForm

Definition at line 42 of file ModelDerivedAttributeImportRules.php.

Member Function Documentation

getRealModelAttributeNames ( )

This information regarding the correct attribute name on the model is not available. This information is available via DerivedAttributeSupportedImportRules::getDerivedAttributeRealAttributeName(); Since we don't have access to that information in this class, we don't know the import rule type, we cannot return anything. Resolving what attribute to save the derived model to will need to be handled outside of this class.

See Also
DerivedAttributeSupportedImportRules::getRealModelAttributeNameForDerivedAttribute()
Returns
array

Definition at line 65 of file ModelDerivedAttributeImportRules.php.

resolveValueForImport (   $value,
  $columnName,
  $columnMappingData,
ImportSanitizeResultsUtil  $importSanitizeResultsUtil 
)
Parameters
mixed$value
string$columnName
array$columnMappingData
ImportSanitizeResultsUtil$importSanitizeResultsUtil
Returns
array|void

Definition at line 82 of file ModelDerivedAttributeImportRules.php.


The documentation for this class was generated from the following file:
Generated on Sun May 31 2020 07:10:53