/** * 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; } elseif ($location instanceof Query) { $uri = $location->getQueryUrl(); } else { $uri = $location; } return parent::getEntry($uri, 'Zend\\GData\\Books\\VolumeEntry'); }
public function testSetAndGetStartIndex() { $query = new GData\Query(); $query->setStartIndex(12); $this->assertEquals(12, $query->getStartIndex()); $this->assertContains('start-index=12', $query->getQueryUrl()); }