MultiSelectDropDownSanitizerUtil Class Reference

Inheritance diagram for MultiSelectDropDownSanitizerUtil:
DropDownSanitizerUtil SanitizerUtil ImportSanitizerHasCustomFieldValuesInterface

Public Member Functions

 analyzeByRow (RedBean_OODBBean $rowBean)
 sanitizeValue ($value)

Static Public Member Functions

static getCustomFieldValuesFromValueString ($value)

Static Protected Member Functions

static processMissingValueToMapAndGetResolvedValueToUse ($aValue, &$generateMissingPickListError, array $customFieldsInstructionData, array $dropDownValues, array $lowerCaseDropDownValues)
static makeOwnedMultiSelectCustomField ($resolvedValuesToUse, $customFieldData)

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

Reimplemented from DropDownSanitizerUtil.

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 

Reimplemented from DropDownSanitizerUtil.

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:
 All Data Structures Functions Variables
Generated on Sun Apr 30 07:10:27 2017