function sync_metadata()
    {
        if (!empty($this->metadata)) {
            $status = $this->container->cfs_http->update_object($this);
            #if ($status == 401 && $this->_re_auth()) {
            #    return $this->sync_metadata();
            #}
            if ($status != 202) {
                throw new InvalidResponseException("Invalid response ("
                    .$status."): ".$this->container->cfs_http->get_error());
            }
            return True;
        }
        return False;
    }
function sync_metadata()
    {
        if (!empty($this->metadata)) {
            $status = $this->container->cfs_http->update_object($this);
            #if ($status == 401 && $this->_re_auth()) {
            #    return $this->sync_metadata();
            #}
            if ($status != 202) {
                throw new InvalidResponseException("Invalid response ("
                    .$status."): ".$this->container->cfs_http->get_error());
            }
            return True;
        }
        return False;
    }
function sync_metadata ( ) { if ( ! empty ( $ this -> metadata ) ) { $ status = $ this -> container -> cfs_http -> update_object ( $ this ) ; #if ($status == 401 && $this->_re_auth()) { #    return $this->sync_metadata(); #} if ( $ status != 202 ) { throw new InvalidResponseException ( "Invalid response (" . $ status . "): " . $ this -> container -> cfs_http -> get_error ( ) ) ; } return True ; } return False ; }
Store new Object metadata

Write's an Object's metadata to the remote Object.  This will overwrite
an prior Object metadata.

Example:
<code>
# ... authentication/connection/container code excluded
# ... see previous examples

$my_docs = $conn->get_container("documents");
$doc = $my_docs->get_object("README");

# Define new metadata for the object
#
$doc->metadata = array(
"Author" => "EJ",
"Subject" => "How to use the PHP tests",
"Version" => "1.2.2"
);

# Push the new metadata up to the storage system
#
$doc->sync_metadata();
</code>

@return boolean <kbd>True</kbd> if successful, <kbd>False</kbd> otherwise
@throws InvalidResponseException unexpected response
Store new Object metadata