src/POData/ObjectModel/ObjectModelSerializerBase.php 1 location
|
@@ 183-191 (lines=9) @@
|
| 180 |
|
* |
| 181 |
|
* @return ResourceSetWrapper |
| 182 |
|
*/ |
| 183 |
|
protected function getCurrentResourceSetWrapper() |
| 184 |
|
{ |
| 185 |
|
$count = count($this->_segmentResourceSetWrappers); |
| 186 |
|
if ($count == 0) { |
| 187 |
|
return $this->request->getTargetResourceSetWrapper(); |
| 188 |
|
} else { |
| 189 |
|
return $this->_segmentResourceSetWrappers[$count - 1]; |
| 190 |
|
} |
| 191 |
|
} |
| 192 |
|
|
| 193 |
|
/** |
| 194 |
|
* Whether the current resource set is root resource set. |
src/POData/UriProcessor/UriProcessor.php 1 location
|
@@ 662-670 (lines=9) @@
|
| 659 |
|
* |
| 660 |
|
* @return ResourceSetWrapper |
| 661 |
|
*/ |
| 662 |
|
private function _getCurrentResourceSetWrapper() |
| 663 |
|
{ |
| 664 |
|
$count = count($this->_segmentResourceSetWrappers); |
| 665 |
|
if ($count == 0) { |
| 666 |
|
return $this->request->getTargetResourceSetWrapper(); |
| 667 |
|
} else { |
| 668 |
|
return $this->_segmentResourceSetWrappers[$count - 1]; |
| 669 |
|
} |
| 670 |
|
} |
| 671 |
|
|
| 672 |
|
/** |
| 673 |
|
* Pushes a segment for the root of the tree |