public function refresh($fetchContent = FALSE) {

    // Kill old content.
    unset($this->content);

    $response = $this->fetchObject($fetchContent);


    if ($fetchContent) {
      $this->setContent($response->content());
    }

    return $this;
  }
public function refresh($fetchContent = FALSE) {

    // Kill old content.
    unset($this->content);

    $response = $this->fetchObject($fetchContent);


    if ($fetchContent) {
      $this->setContent($response->content());
    }

    return $this;
  }
public function refresh ( $ fetchContent = FALSE ) { // Kill old content. unset ( $ this -> content ) ; $ response = $ this -> fetchObject ( $ fetchContent ) ; if ( $ fetchContent ) { $ this -> setContent ( $ response -> content ( ) ) ; } return $ this ; }
Rebuild the local object from the remote.

This refetches the object from the object store and then
reconstructs the present object based on the refreshed data.

WARNING: This will destroy any unsaved local changes. You can use
isDirty() to determine whether or not a local change has been made.

@param boolean $fetchContent
If this is TRUE, the content will be downloaded as well.

@retval HPCloud::Storage::ObjectStorage::RemoteObject
@return \HPCloud\Storage\ObjectStorage\RemoteObject
$this for the current object so it can be used in chaining methods.
Rebuild the local object from the remote .