Zend/Gdata/App/Entry.php
public function reload($uri = null, $className = null, $extraHeaders = array())
    {
        // Get URI
        $editLink = $this->getEditLink();
        if (($uri === null) && $editLink != null) {
            $uri = $editLink->getHref();
        }

        // Set classname to current class, if not otherwise set
        if ($className === null) {
            $className = get_class($this);
        }

        // Append ETag, if present (Gdata v2 and above, only) and doesn't
        // conflict with existing headers
        if ($this->_etag != null
                && !array_key_exists('If-Match', $extraHeaders)
                && !array_key_exists('If-None-Match', $extraHeaders)) {
            $extraHeaders['If-None-Match'] = $this->_etag;
        }

        // If an HTTP 304 status (Not Modified)is returned, then we return
        // null.
        $result = null;
        try {
            $result = $this->service->importUrl($uri, $className, $extraHeaders);
        } catch (Zend_Gdata_App_HttpException $e) {
            if ($e->getResponse()->getStatus() != '304')
                throw $e;
        }

        return $result;
    }
public function reload($uri = null, $className = null, $extraHeaders = array())
    {
        // Get URI
        $editLink = $this->getEditLink();
        if (($uri === null) && $editLink != null) {
            $uri = $editLink->getHref();
        }

        // Set classname to current class, if not otherwise set
        if ($className === null) {
            $className = get_class($this);
        }

        // Append ETag, if present (Gdata v2 and above, only) and doesn't
        // conflict with existing headers
        if ($this->_etag != null
                && !array_key_exists('If-Match', $extraHeaders)
                && !array_key_exists('If-None-Match', $extraHeaders)) {
            $extraHeaders['If-None-Match'] = $this->_etag;
        }

        // If an HTTP 304 status (Not Modified)is returned, then we return
        // null.
        $result = null;
        try {
            $result = $this->service->importUrl($uri, $className, $extraHeaders);
        } catch (Zend_Gdata_App_HttpException $e) {
            if ($e->getResponse()->getStatus() != '304')
                throw $e;
        }

        return $result;
    }
public function reload ( $ uri = null , $ className = null , $ extraHeaders = array ( ) ) { // Get URI $ editLink = $ this -> getEditLink ( ) ; if ( ( $ uri === null ) && $ editLink != null ) { $ uri = $ editLink -> getHref ( ) ; } // Set classname to current class, if not otherwise set if ( $ className === null ) { $ className = get_class ( $ this ) ; } // Append ETag, if present (Gdata v2 and above, only) and doesn't // conflict with existing headers if ( $ this -> _etag != null && ! array_key_exists ( 'If-Match' , $ extraHeaders ) && ! array_key_exists ( 'If-None-Match' , $ extraHeaders ) ) { $ extraHeaders [ 'If-None-Match' ] = $ this -> _etag ; } // If an HTTP 304 status (Not Modified)is returned, then we return // null. $ result = null ; try { $ result = $ this -> service -> importUrl ( $ uri , $ className , $ extraHeaders ) ; } catch ( Zend_Gdata_App_HttpException $ e ) { if ( $ e -> getResponse ( ) -> getStatus ( ) != '304' ) throw $ e ; } return $ result ; }
Reload the current entry. Returns a new copy of the entry as returned
by the server, or null if no changes exist. This does not
modify the current entry instance.

@param string|null The URI to send requests to, or null if $data
contains the URI.
@param string|null The name of the class that should we deserializing
the server response. If null, then 'Zend_Gdata_App_Entry' will
be used.
@param array $extraHeaders Extra headers to add to the request, as an
array of string-based key/value pairs.
@return mixed A new instance of the current entry with updated data, or
null if the server reports that no changes have been made.
@throws Zend_Gdata_App_Exception
Reload the current entry . Returns a new copy of the entry as returned by the server or null if no changes exist . This does not modify the current entry instance .