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 StageModifiedDateTimeAttributeImportRules TextAreaAttributeImportRules TextAttributeImportRules UrlAttributeImportRules UsernameAttributeImportRules

Public Member Functions

 __construct ($model, $attributeName, $explicitReadWriteModelPermissions=null)
 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.


Constructor & Destructor Documentation

__construct ( model,
attributeName,
explicitReadWriteModelPermissions = null 
)
Parameters:
$model 
null $attributeName
null || ExplicitReadWriteModelPermissions $explicitReadWriteModelPermissions

Definition at line 53 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 76 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 90 of file NonDerivedAttributeImportRules.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sun Oct 13 07:11:05 2019