|
@@ 915-926 (lines=12) @@
|
| 912 |
|
} |
| 913 |
|
|
| 914 |
|
|
| 915 |
|
if (null !== ($linkedData = $this->context->getLinkedData($resType, $resId))) { |
| 916 |
|
$idx = $this->context->getLinkedDataIndex($resType, $resId); |
| 917 |
|
$prevPath = $this->path; |
| 918 |
|
|
| 919 |
|
$this->initPathStack(); |
| 920 |
|
$this->setPath('included')->setPath($idx); |
| 921 |
|
|
| 922 |
|
$this->parseProperty([$idx => $linkedData], $pathValue, $relationship, '[' . $idx . ']'); |
| 923 |
|
$this->path = $prevPath; |
| 924 |
|
|
| 925 |
|
return; |
| 926 |
|
} |
| 927 |
|
|
| 928 |
|
$this->parseProperty($data, $pathValue, $relationship); |
| 929 |
|
} |
|
@@ 961-978 (lines=18) @@
|
| 958 |
|
|
| 959 |
|
$params = $relationship->getDataTypeParams(); |
| 960 |
|
|
| 961 |
|
if (null !== ($linkedData = $this->context->getLinkedData($resType, $resId))) { |
| 962 |
|
$idx = $this->context->getLinkedDataIndex($resType, $resId); |
| 963 |
|
|
| 964 |
|
$prevPath = $this->path; |
| 965 |
|
$this->initPathStack(); |
| 966 |
|
$this->setPath('included')->setPath($idx); |
| 967 |
|
|
| 968 |
|
$parsed = $this->parseResourceOrObject( |
| 969 |
|
[$idx => $linkedData], |
| 970 |
|
'[' . $idx .']', |
| 971 |
|
$params[1], |
| 972 |
|
$relationship |
| 973 |
|
); |
| 974 |
|
|
| 975 |
|
$this->path = $prevPath; |
| 976 |
|
|
| 977 |
|
return $parsed; |
| 978 |
|
} |
| 979 |
|
|
| 980 |
|
return $this->parseResourceOrObject($data, $path, $params[1], $relationship); |
| 981 |
|
}); |