All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DropDownSanitizerUtil Class Reference
Inheritance diagram for DropDownSanitizerUtil:
SanitizerUtil ImportSanitizerHasCustomFieldValuesInterface MultiSelectDropDownSanitizerUtil

Public Member Functions

 getMissingCustomFieldValues ()
 analyzeByRow (RedBean_OODBBean $rowBean)
 sanitizeValue ($value)
- Public Member Functions inherited from SanitizerUtil
 sanitizeValue ($value)
 analyzeByRow (RedBean_OODBBean $rowBean)
 __construct ($modelClassName, $attributeName, $columnName, array $columnMappingData, ImportSanitizeResultsUtil $importSanitizeResultsUtil=null, $penultimateModelClassName, $penultimateAttributeName, $explicitReadWriteModelPermissions=null)
 shouldSanitizeValue ()
 getAnalysisMessages ()
 getShouldSkipRow ()

Static Public Member Functions

static supportsSanitizingWithInstructions ()
- Static Public Member Functions inherited from SanitizerUtil
static getType ()
static getLinkedMappingRuleType ()
static shouldNotSaveModelOnSanitizingValueFailure ()

Protected Member Functions

 assertMappingRuleDataIsValid ()
 getCustomFieldsInstructionDataFromColumnMappingData ()
- Protected Member Functions inherited from SanitizerUtil
 init ()
 assertMappingRuleDataIsValid ()

Protected Attributes

 $missingCustomFieldValues = array()
- Protected Attributes inherited from SanitizerUtil
 $analysisMessages = array()
 $shouldSkipRow = false
 $columnMappingData = array()
 $mappingRuleData = array()
 $explicitReadWriteModelPermissions = null

Additional Inherited Members

- Static Protected Member Functions inherited from SanitizerUtil
static resolveMappingRuleData ($columnMappingData)

Detailed Description

Sanitizer for drop down attributes.

Definition at line 40 of file DropDownSanitizerUtil.php.

Member Function Documentation

static supportsSanitizingWithInstructions ( )

Override to support instructions for drop downs. An example is if there is a missing drop down value, information is provided in the instructions explainnig whether to add the missing drop down, delete the value, or merge the value into an existing drop down.

Definition at line 49 of file DropDownSanitizerUtil.php.

analyzeByRow ( RedBean_OODBBean  $rowBean)

Definition at line 62 of file DropDownSanitizerUtil.php.

sanitizeValue (   $value)

Given a value, resolve that the value is a valid custom field data value. If the value does not exist yet, check the import instructions data to determine how to handle the missing value.

sanitized value

Definition at line 87 of file DropDownSanitizerUtil.php.

The documentation for this class was generated from the following file:
Generated on Tue Jan 21 2020 07:10:35