@@ 254-262 (lines=9) @@ | ||
251 | $this->writeBaseUriAndDefaultNamespaces(); |
|
252 | } |
|
253 | ||
254 | if (!is_null($entry->eTag)) { |
|
255 | $this->xmlWriter->startAttributeNs( |
|
256 | ODataConstants::ODATA_METADATA_NAMESPACE_PREFIX, |
|
257 | ODataConstants::ATOM_ETAG_ATTRIBUTE_NAME, |
|
258 | null |
|
259 | ); |
|
260 | $this->xmlWriter->text($entry->eTag); |
|
261 | $this->xmlWriter->endAttribute(); |
|
262 | } |
|
263 | ||
264 | $this |
|
265 | ->writeNodeValue(ODataConstants::ATOM_ID_ELEMENT_NAME, $entry->id) |
|
@@ 300-308 (lines=9) @@ | ||
297 | ||
298 | if ($entry->isMediaLinkEntry) { |
|
299 | $this->xmlWriter->startElement(ODataConstants::ATOM_LINK_ELEMENT_NAME); |
|
300 | if ($entry->mediaLink->eTag != null) { |
|
301 | $this->xmlWriter->startAttributeNs( |
|
302 | ODataConstants::ODATA_METADATA_NAMESPACE_PREFIX, |
|
303 | ODataConstants::ATOM_ETAG_ATTRIBUTE_NAME, |
|
304 | null |
|
305 | ); |
|
306 | $this->xmlWriter->text($entry->mediaLink->eTag); |
|
307 | $this->xmlWriter->endAttribute(); |
|
308 | } |
|
309 | $this->xmlWriter->startAttribute( |
|
310 | ODataConstants::ATOM_LINK_RELATION_ATTRIBUTE_NAME |
|
311 | ); |
|
@@ 331-339 (lines=9) @@ | ||
328 | ||
329 | foreach ($entry->mediaLinks as $mediaLink) { |
|
330 | $this->xmlWriter->startElement(ODataConstants::ATOM_LINK_ELEMENT_NAME); |
|
331 | if ($mediaLink->eTag != null) { |
|
332 | $this->xmlWriter->startAttributeNs( |
|
333 | ODataConstants::ODATA_METADATA_NAMESPACE_PREFIX, |
|
334 | ODataConstants::ATOM_ETAG_ATTRIBUTE_NAME, |
|
335 | null |
|
336 | ); |
|
337 | $this->xmlWriter->text($mediaLink->eTag); |
|
338 | $this->xmlWriter->endAttribute(); |
|
339 | } |
|
340 | $this->xmlWriter->startAttribute(ODataConstants::ATOM_LINK_RELATION_ATTRIBUTE_NAME); |
|
341 | $this->xmlWriter->text( |
|
342 | 'http://schemas.microsoft.com/ado/2007/08/dataservices/mediaresource/' |