Beispiel #1
0
 public function testSetAndGetStartIndex()
 {
     $query = new Zend_Gdata_Query();
     $query->setStartIndex(12);
     $this->assertEquals(12, $query->getStartIndex());
     $this->assertTrue(strpos($query->getQueryUrl(), 'start-index=12') !== false);
 }
Beispiel #2
0
 /**
  * Retrieves a specific volume entry.
  *
  * @param string|null $volumeId The volumeId of interest.
  * @param Zend_Gdata_Query|string|null $location (optional) The URL to
  *        query or a Zend_Gdata_Query object from which a URL can be
  *        determined.
  * @return Zend_Gdata_Books_VolumeEntry The feed of volumes found at the
  *         specified URL.
  */
 public function getVolumeEntry($volumeId = null, $location = null)
 {
     if ($volumeId !== null) {
         $uri = self::VOLUME_FEED_URI . "/" . $volumeId;
     } else {
         if ($location instanceof Zend_Gdata_Query) {
             $uri = $location->getQueryUrl();
         } else {
             $uri = $location;
         }
     }
     return parent::getEntry($uri, 'Zend_Gdata_Books_VolumeEntry');
 }
Beispiel #3
0
 public function testSetAndGetStartIndex()
 {
     $query = new Zend_Gdata_Query();
     $query->setStartIndex(12);
     $this->assertEquals(12, $query->getStartIndex());
     $this->assertContains('start-index=12', $query->getQueryUrl());
 }