| @@ 194-201 (lines=8) @@ | ||
| 191 | $field->recursiveDeepness = $deepness; |
|
| 192 | } |
|
| 193 | ||
| 194 | if ($parentIncludableElementMode == null) { |
|
| 195 | $submodes = array_map(function ($fieldIncludableElement) use ($fieldName) { |
|
| 196 | return FieldEntry_relationship::extractMode($fieldName, $fieldIncludableElement); |
|
| 197 | }, $field->fetchIncludableElements()); |
|
| 198 | } |
|
| 199 | else { |
|
| 200 | $submodes = array($parentIncludableElementMode); |
|
| 201 | } |
|
| 202 | ||
| 203 | foreach ($submodes as $submode) { |
|
| 204 | $field->appendFormattedElement($xml, $filteredData, false, $submode, $entryId); |
|
| @@ 726-730 (lines=5) @@ | ||
| 723 | } |
|
| 724 | ||
| 725 | // current selection does not specify a mode |
|
| 726 | if ($submodes == null) { |
|
| 727 | $submodes = array_map(function ($fieldIncludableElement) use ($fieldName) { |
|
| 728 | return FieldEntry_relationship::extractMode($fieldName, $fieldIncludableElement); |
|
| 729 | }, $field->fetchIncludableElements()); |
|
| 730 | } |
|
| 731 | ||
| 732 | foreach ($submodes as $submode) { |
|
| 733 | $field->appendFormattedElement($item, $data, $encode, $submode, $eId); |
|