/** * Deletes this entry to the server using the referenced * Zend_Http_Client to do a HTTP DELETE to the edit link stored in this * entry's link collection. * * @param boolean $dryRun Whether the transaction is dry run or not * @return void * @throws Zend_Gdata_App_Exception */ public function delete($dryRun = false) { if ($dryRun) { $uri = null; $editLink = $this->getEditLink(); if ($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.'); } $this->getService()->delete($uri); } else { parent::delete(); } }