| @@ 59-66 (lines=8) @@ | ||
| 56 | $field->recursiveDeepness = $deepness; |
|
| 57 | } |
|
| 58 | ||
| 59 | if ($parentIncludableElementMode == null) { |
|
| 60 | $submodes = array_map(function ($fieldIncludableElement) use ($fieldName) { |
|
| 61 | return FieldEntry_relationship::extractMode($fieldName, $fieldIncludableElement); |
|
| 62 | }, $field->fetchIncludableElements()); |
|
| 63 | } |
|
| 64 | else { |
|
| 65 | $submodes = array($parentIncludableElementMode); |
|
| 66 | } |
|
| 67 | ||
| 68 | foreach ($submodes as $submode) { |
|
| 69 | $field->appendFormattedElement($xml, $filteredData, false, $submode, $entryId); |
|
| @@ 737-741 (lines=5) @@ | ||
| 734 | } |
|
| 735 | ||
| 736 | // current selection does not specify a mode |
|
| 737 | if ($submodes == null) { |
|
| 738 | $submodes = array_map(function ($fieldIncludableElement) use ($fieldName) { |
|
| 739 | return FieldEntry_relationship::extractMode($fieldName, $fieldIncludableElement); |
|
| 740 | }, $field->fetchIncludableElements()); |
|
| 741 | } |
|
| 742 | ||
| 743 | foreach ($submodes as $submode) { |
|
| 744 | $field->appendFormattedElement($item, $data, $encode, $submode, $eId); |
|