src/POData/Writers/Json/JsonODataV1Writer.php 1 location
|
@@ 298-309 (lines=12) @@
|
| 295 |
|
return $this; |
| 296 |
|
} |
| 297 |
|
|
| 298 |
|
protected function writeExpandedLink(ODataLink $link) |
| 299 |
|
{ |
| 300 |
|
if ($link->isCollection) { |
| 301 |
|
$this->_writer->startArrayScope(); |
| 302 |
|
$this->writeFeed($link->expandedResult); |
| 303 |
|
} else { |
| 304 |
|
$this->_writer->startObjectScope(); |
| 305 |
|
$this->writeEntry($link->expandedResult); |
| 306 |
|
} |
| 307 |
|
|
| 308 |
|
$this->_writer->endScope(); |
| 309 |
|
} |
| 310 |
|
|
| 311 |
|
|
| 312 |
|
/** |
src/POData/Writers/Json/JsonLightODataWriter.php 1 location
|
@@ 257-271 (lines=15) @@
|
| 254 |
|
return $this; |
| 255 |
|
} |
| 256 |
|
|
| 257 |
|
protected function writeExpandedLink(ODataLink $link) |
| 258 |
|
{ |
| 259 |
|
|
| 260 |
|
|
| 261 |
|
if ($link->isCollection) { |
| 262 |
|
$this->_writer->startArrayScope(); |
| 263 |
|
$this->writeFeed($link->expandedResult); |
| 264 |
|
} else { |
| 265 |
|
$this->_writer->startObjectScope(); |
| 266 |
|
$this->writeEntry($link->expandedResult); |
| 267 |
|
} |
| 268 |
|
|
| 269 |
|
|
| 270 |
|
$this->_writer->endScope(); |
| 271 |
|
} |
| 272 |
|
|
| 273 |
|
/** |
| 274 |
|
* Writes the next page link. |