| @@ 157-164 (lines=8) @@ | ||
| 154 | $field->setRecursiveDeepness($deepness); |
|
| 155 | } |
|
| 156 | ||
| 157 | if ($parentIncludableElementMode == null) { |
|
| 158 | $submodes = array_map(function ($fieldIncludableElement) use ($fieldName) { |
|
| 159 | return FieldEntry_relationship::extractMode($fieldName, $fieldIncludableElement); |
|
| 160 | }, $field->fetchIncludableElements()); |
|
| 161 | } |
|
| 162 | else { |
|
| 163 | $submodes = array($parentIncludableElementMode); |
|
| 164 | } |
|
| 165 | ||
| 166 | foreach ($submodes as $submode) { |
|
| 167 | $field->appendFormattedElement($xml, $filteredData, false, $submode, $entryId); |
|
| @@ 756-760 (lines=5) @@ | ||
| 753 | } |
|
| 754 | ||
| 755 | // current selection does not specify a mode |
|
| 756 | if ($submodes == null) { |
|
| 757 | $submodes = array_map(function ($fieldIncludableElement) use ($fieldName) { |
|
| 758 | return FieldEntry_relationship::extractMode($fieldName, $fieldIncludableElement); |
|
| 759 | }, $field->fetchIncludableElements()); |
|
| 760 | } |
|
| 761 | ||
| 762 | foreach ($submodes as $submode) { |
|
| 763 | $field->appendFormattedElement($item, $data, $encode, $submode, $eId); |
|