コード例 #1
0
 /**
  * Delete a Volume
  *
  * @param Zend_Gdata_Books_VolumeEntry $entry
  * @return void
  */
 public function deleteVolume($entry)
 {
     $entry->delete();
 }
コード例 #2
0
ファイル: demo.php プロジェクト: jsnshrmn/Suma
 /**
  * Remove an an arbitrary book from a feed (either remove
  * from library feed or remove the annotations from annotation
  * feed).
  *
  * @param Zend_Gdata_Books_VolumeEntry $entry
  * @return void
  */
 public function removeBook($entry)
 {
     print "Deleting " . $entry->getId()->getText() . "\n\n";
     $this->gdClient->deleteVolume($entry);
 }
コード例 #3
0
 public function testConvertVolumeEntryToAndFromString()
 {
     $this->entry->transferFromXML($this->entryText);
     $entryXml = $this->entry->saveXML();
     $newVolumeEntry = new Zend_Gdata_Books_VolumeEntry();
     $newVolumeEntry->transferFromXML($entryXml);
     $this->verifySamplePropertiesAreCorrect($newVolumeEntry);
     $newVolumeEntryXml = $newVolumeEntry->saveXML();
     $this->assertEquals($entryXml, $newVolumeEntryXml);
 }
コード例 #4
0
ファイル: BooksOnlineTest.php プロジェクト: netvlies/zf
 public function testUserAnnotationFeed()
 {
     $feed = $this->gdata->getUserAnnotationFeed();
     $this->assertTrue($feed instanceof Zend_Gdata_Books_VolumeFeed);
     foreach ($feed->entries as $entry) {
         $this->assertTrue($entry instanceof Zend_Gdata_Books_VolumeEntry);
         $this->assertEquals($feed->getHttpClient(), $entry->getHttpClient());
     }
     $entry = new Zend_Gdata_Books_VolumeEntry();
     $entry->setId(new Zend_Gdata_App_Extension_Id('Mfer_MFwQrkC'));
     $entry->setRating(new Zend_Gdata_Extension_Rating(3, 1, 5, 1));
     $newEntry = $this->gdata->insertVolume($entry, Zend_Gdata_Books::MY_ANNOTATION_FEED_URI);
     $this->assertTrue($newEntry instanceof Zend_Gdata_Books_VolumeEntry);
     $this->gdata->deleteVolume($newEntry);
 }