57 if (isset($processorConfiguration[
'if.']) && !$cObj->
checkIf($processorConfiguration[
'if.'])) {
58 return $processedData;
62 $fieldName = $cObj->
stdWrapValue(
'fieldName', $processorConfiguration);
63 if (empty($fieldName)) {
64 return $processedData;
67 $originalValue = $cObj->data[$fieldName];
70 $targetVariableName = $cObj->
stdWrapValue(
'as', $processorConfiguration, $fieldName);
73 $delimiter = $cObj->
stdWrapValue(
'delimiter', $processorConfiguration, LF);
76 $filterIntegers = (bool)$cObj->
stdWrapValue(
'filterIntegers', $processorConfiguration,
false);
79 $filterUnique = (bool)$cObj->
stdWrapValue(
'filterUnique', $processorConfiguration,
false);
82 $removeEmptyEntries = (bool)$cObj->
stdWrapValue(
'removeEmptyEntries', $processorConfiguration,
false);
84 if ($filterIntegers ===
true) {
85 $processedData[$targetVariableName] = GeneralUtility::intExplode($delimiter, $originalValue, $removeEmptyEntries);
87 $processedData[$targetVariableName] = GeneralUtility::trimExplode($delimiter, $originalValue, $removeEmptyEntries);
90 if ($filterUnique ===
true) {
91 $processedData[$targetVariableName] = array_unique($processedData[$targetVariableName]);
94 return $processedData;