/** * Uploads changes in this entry to the server using Zend_Gdata_App * * @param boolean $dryRun Whether the transaction is dry run or not. * @param string|null $uri The URI to send requests to, or null if $data * contains the URI. * @param string|null $className 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 Zend_Gdata_App_Entry The updated entry * @throws Zend_Gdata_App_Exception */ public function save($dryRun = false, $uri = null, $className = null, $extraHeaders = array()) { if ($dryRun) { $editLink = $this->getEditLink(); if ($uri == null && $editLink !== null) { $uri = $editLink->getHref() . '?dry-run=true'; } if ($uri === null) { throw new Zend_Gdata_App_InvalidArgumentException('You must specify an URI which needs deleted.'); } } return parent::save($uri, $className, $extraHeaders); }