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

Public Member Functions

 analyzeByRow (RedBean_OODBBean $rowBean)
 
 sanitizeValue ($value)
 
- Public Member Functions inherited from DropDownSanitizerUtil
 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 getCustomFieldValuesFromValueString ($value)
 
- Static Public Member Functions inherited from DropDownSanitizerUtil
static supportsSanitizingWithInstructions ()
 
- Static Public Member Functions inherited from SanitizerUtil
static getType ()
 
static getLinkedMappingRuleType ()
 
static shouldNotSaveModelOnSanitizingValueFailure ()
 

Static Protected Member Functions

static processMissingValueToMapAndGetResolvedValueToUse ($aValue, &$generateMissingPickListError, array $customFieldsInstructionData, array $dropDownValues, array $lowerCaseDropDownValues)
 
static makeOwnedMultiSelectCustomField ($resolvedValuesToUse, $customFieldData)
 
- Static Protected Member Functions inherited from SanitizerUtil
static resolveMappingRuleData ($columnMappingData)
 

Additional Inherited Members

- Protected Member Functions inherited from DropDownSanitizerUtil
 assertMappingRuleDataIsValid ()
 
 getCustomFieldsInstructionDataFromColumnMappingData ()
 
- Protected Member Functions inherited from SanitizerUtil
 init ()
 
 assertMappingRuleDataIsValid ()
 
- Protected Attributes inherited from DropDownSanitizerUtil
 $missingCustomFieldValues = array()
 
- Protected Attributes inherited from SanitizerUtil
 $modelClassName
 
 $attributeName
 
 $analysisMessages = array()
 
 $shouldSkipRow = false
 
 $columnName
 
 $columnMappingData = array()
 
 $mappingRuleData = array()
 
 $importSanitizeResultsUtil
 
 $penultimateModelClassName
 
 $penultimateAttributeName
 
 $explicitReadWriteModelPermissions = null
 

Detailed Description

Sanitizer for multi-select drop down attributes.

Definition at line 40 of file MultiSelectDropDownSanitizerUtil.php.

Member Function Documentation

analyzeByRow ( RedBean_OODBBean  $rowBean)
Parameters
RedBean_OODBBean$rowBean

Definition at line 45 of file MultiSelectDropDownSanitizerUtil.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.

Example of customFieldsInstructionData array(array(CustomFieldsInstructionData::ADD_MISSING_VALUES => array('neverPresent', 'notPresent'))

Parameters
mixed$value
Returns
sanitized value
Exceptions
InvalidValueToSanitizeException

Definition at line 78 of file MultiSelectDropDownSanitizerUtil.php.

static getCustomFieldValuesFromValueString (   $value)
static
Parameters
string$value
Returns
array

Definition at line 149 of file MultiSelectDropDownSanitizerUtil.php.


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