/** * 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 == true) { $editLink = $this->getEditLink(); if ($uri == null && $editLink !== null) { $uri = $editLink->getHref() . '?dry-run=true'; } if ($uri === null) { throw new App\InvalidArgumentException('You must specify an URI which needs deleted.'); } $service = new App\App($this->getHttpClient()); return $service->updateEntry($this, $uri, $className, $extraHeaders); } else { parent::save($uri, $className, $extraHeaders); } }