eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/RelationConverter.php 1 location
|
@@ 160-165 (lines=6) @@
|
| 157 |
|
$fieldSettings['selectionMethod'] = (int)$selectionType->item(0)->getAttribute('value'); |
| 158 |
|
} |
| 159 |
|
|
| 160 |
|
if ( |
| 161 |
|
($defaultLocation = $dom->getElementsByTagName('contentobject-placement')) && |
| 162 |
|
$defaultLocation->item(0)->hasAttribute('node-id') |
| 163 |
|
) { |
| 164 |
|
$fieldSettings['selectionRoot'] = (int)$defaultLocation->item(0)->getAttribute('node-id'); |
| 165 |
|
} |
| 166 |
|
|
| 167 |
|
if (!($constraints = $dom->getElementsByTagName('constraints'))) { |
| 168 |
|
return; |
eZ/Publish/Core/Persistence/Legacy/Content/FieldValue/Converter/RelationListConverter.php 1 location
|
@@ 220-225 (lines=6) @@
|
| 217 |
|
$fieldSettings['selectionMethod'] = (int)$selectionType->item(0)->getAttribute('value'); |
| 218 |
|
} |
| 219 |
|
|
| 220 |
|
if ( |
| 221 |
|
($defaultLocation = $dom->getElementsByTagName('contentobject-placement')) && |
| 222 |
|
$defaultLocation->item(0)->hasAttribute('node-id') |
| 223 |
|
) { |
| 224 |
|
$fieldSettings['selectionDefaultLocation'] = (int)$defaultLocation->item(0)->getAttribute('node-id'); |
| 225 |
|
} |
| 226 |
|
|
| 227 |
|
if (!($constraints = $dom->getElementsByTagName('constraints'))) { |
| 228 |
|
return; |