32 $documentType = $fields[
'DOCUMENT_TYPE'];
33 $fieldsInfo = array_merge($fieldsInfo, $this->
getFields(), $this->getFieldMapForType($documentType));
35 return parent::internalizeFieldsUpdate($fields, $fieldsInfo);
40 $documentType = $arguments[
'filter'][
'DOCUMENT_TYPE'];
41 $fieldsInfo = array_merge($fieldsInfo, $this->
getFields(), $this->getFieldMapForType($documentType));
43 return parent::internalizeFieldsList($arguments, $fieldsInfo);
48 $isDynamic = in_array(Attributes::DYNAMIC, $info[
'ATTRIBUTES'],
true);
49 $isMultiple = in_array(Attributes::MULTIPLE, $info[
'ATTRIBUTES'],
true);
50 if (empty($value) && $isDynamic && $isMultiple)
55 if ($info[
'USER_FIELD_TYPE'] ===
'file')
59 $internalizedValue = [];
60 foreach ($value as $item)
62 $internalizedValue[] = $this->internalizeFileValue($item);
64 $value = $internalizedValue;
68 $value = $this->internalizeFileValue($value);
72 return parent::internalizeExtendedTypeValue($value, $info);
77 $documentType = $fields[
'DOC_TYPE'];
78 $fieldsInfo = array_merge($fieldsInfo, $this->
getFields(), $this->getFieldMapForType($documentType));
80 return parent::externalizeFieldsGet($fields, $fieldsInfo);
85 $documentType = $list[0][
'DOC_TYPE'];
86 $fieldsInfo = array_merge($fieldsInfo, $this->
getFields(), $this->getFieldMapForType($documentType));
88 return parent::externalizeListFields($list, $fieldsInfo);