/** * 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'); }
/** * Create a new instance. * * @param string $domain (optional) The Google Apps-hosted domain to use * when constructing query URIs. * @param string $groupId (optional) Value for the groupId property. * @param string $startGroupName (optional) Value for the * startGroupName property. */ public function __construct($domain = null, $groupId = null, $startGroupId = null) { parent::__construct($domain); $this->setGroupId($groupId); $this->setStartGroupId($startGroupId); }
/** * Create Gdata_Books_VolumeQuery object * * @param string|null $url If non-null, pre-initializes the instance to * use a given URL. */ public function __construct($url = null) { parent::__construct($url); }
/** * Constructs a new instance of a Zend_Gdata_Docs_Query object. */ public function __construct() { parent::__construct(); }
/** * Gets the attribute query string for this query. * @return string query string */ public function getQueryString() { return parent::getQueryString(); }
/** * Create a new instance. * * @param string $domain (optional) The Google Apps-hosted domain to use * when constructing query URIs. */ public function __construct($domain = null) { parent::__construct(); $this->_domain = $domain; }
public function testSetAndGetStartIndex() { $query = new GData\Query(); $query->setStartIndex(12); $this->assertEquals(12, $query->getStartIndex()); $this->assertContains('start-index=12', $query->getQueryUrl()); }