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

Protected Attributes

 $attributeName
 
 $penultimateModelClassName
 
 $penultimateAttributeName
 
- Protected Attributes inherited from AttributeImportRules
 $model
 
 $explicitReadWriteModelPermissions = null
 

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

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

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

Definition at line 90 of file NonDerivedAttributeImportRules.php.


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