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
|
@@ 681-689 (lines=9) @@
|
| 678 |
|
* |
| 679 |
|
* @return ResourceSetWrapper |
| 680 |
|
*/ |
| 681 |
|
private function _getCurrentResourceSetWrapper() |
| 682 |
|
{ |
| 683 |
|
$count = count($this->_segmentResourceSetWrappers); |
| 684 |
|
if ($count == 0) { |
| 685 |
|
return $this->request->getTargetResourceSetWrapper(); |
| 686 |
|
} else { |
| 687 |
|
return $this->_segmentResourceSetWrappers[$count - 1]; |
| 688 |
|
} |
| 689 |
|
} |
| 690 |
|
|
| 691 |
|
/** |
| 692 |
|
* Pushes a segment for the root of the tree |