Beispiel #1
0
 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) {
             require_once 'Zend/Gdata/App/InvalidArgumentException.php';
             throw new Zend_Gdata_App_InvalidArgumentException('You must specify an URI which needs deleted.');
         }
         $service = new Zend_Gdata_App($this->getHttpClient());
         return $service->updateEntry($this, $uri, $className, $extraHeaders);
     } else {
         parent::save($uri, $className, $extraHeaders);
     }
 }
Beispiel #2
0
 /**
  * Uploads changes in this entry to the server using Zend_Gdata_App
  *
  * @return Zend_Gdata_App_Entry The updated entry
  * @throws Zend_Gdata_App_Exception
  */
 public function save()
 {
     $service = new Zend_Gdata_App($this->getHttpClient());
     return $service->updateEntry($this);
 }