public function writeUrlElement(QueryResult $entryObject)
    {
        $url = new ODataURL();
        if (null !== $entryObject->results) {
            $currentResourceType = $this->getCurrentResourceSetWrapper()->getResourceType();
            $relativeUri = $this->getEntryInstanceKey(
                $entryObject->results,
                $currentResourceType,
                $this->getCurrentResourceSetWrapper()->getName()
            );

            $url->url = rtrim($this->absoluteServiceUri, '/') . '/' . $relativeUri;
        }

        return $url;
    }
public function writeUrlElement(QueryResult $entryObject)
    {
        $url = new ODataURL();
        if (null !== $entryObject->results) {
            $currentResourceType = $this->getCurrentResourceSetWrapper()->getResourceType();
            $relativeUri = $this->getEntryInstanceKey(
                $entryObject->results,
                $currentResourceType,
                $this->getCurrentResourceSetWrapper()->getName()
            );

            $url->url = rtrim($this->absoluteServiceUri, '/') . '/' . $relativeUri;
        }

        return $url;
    }
public function writeUrlElement ( QueryResult $ entryObject ) { $ url = new ODataURL ( ) ; if ( null !== $ entryObject -> results ) { $ currentResourceType = $ this -> getCurrentResourceSetWrapper ( ) -> getResourceType ( ) ; $ relativeUri = $ this -> getEntryInstanceKey ( $ entryObject -> results , $ currentResourceType , $ this -> getCurrentResourceSetWrapper ( ) -> getName ( ) ) ; $ url -> url = rtrim ( $ this -> absoluteServiceUri , '/' ) . '/' . $ relativeUri ; } return $ url ; }
Write top level url element.

@param QueryResult $entryObject The entry resource whose url to be written

@return ODataURL
Write top level url element .