本文整理汇总了PHP中Zend_Gdata_Query::getQueryUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Gdata_Query::getQueryUrl方法的具体用法?PHP Zend_Gdata_Query::getQueryUrl怎么用?PHP Zend_Gdata_Query::getQueryUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Gdata_Query
的用法示例。
在下文中一共展示了Zend_Gdata_Query::getQueryUrl方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testSetAndGetStartIndex
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);
}
示例2: getVolumeEntry
/**
* 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');
}
示例3: testSetAndGetStartIndex
public function testSetAndGetStartIndex()
{
$query = new Zend_Gdata_Query();
$query->setStartIndex(12);
$this->assertEquals(12, $query->getStartIndex());
$this->assertContains('start-index=12', $query->getQueryUrl());
}