src/POData/UriProcessor/RequestExpander.php 1 location
|
@@ 163-169 (lines=7) @@
|
| 160 |
|
* |
| 161 |
|
* @return ResourceSetWrapper |
| 162 |
|
*/ |
| 163 |
|
private function getCurrentResourceSetWrapper() |
| 164 |
|
{ |
| 165 |
|
$wraps = $this->getStack()->getSegmentWrappers(); |
| 166 |
|
$count = count($wraps); |
| 167 |
|
|
| 168 |
|
return 0 == $count ? $this->getRequest()->getTargetResourceSetWrapper() : $wraps[$count - 1]; |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
/** |
| 172 |
|
* Pushes a segment for the root of the tree |
src/POData/ObjectModel/CynicSerialiser.php 1 location
|
@@ 662-668 (lines=7) @@
|
| 659 |
|
* |
| 660 |
|
* @return ResourceSetWrapper |
| 661 |
|
*/ |
| 662 |
|
protected function getCurrentResourceSetWrapper() |
| 663 |
|
{ |
| 664 |
|
$segmentWrappers = $this->getStack()->getSegmentWrappers(); |
| 665 |
|
$count = count($segmentWrappers); |
| 666 |
|
|
| 667 |
|
return 0 == $count ? $this->getRequest()->getTargetResourceSetWrapper() : $segmentWrappers[$count - 1]; |
| 668 |
|
} |
| 669 |
|
|
| 670 |
|
/** |
| 671 |
|
* Wheter next link is needed for the current resource set (feed) |