本文整理汇总了PHP中Zend_Gdata_Query::setUpdatedMin方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Gdata_Query::setUpdatedMin方法的具体用法?PHP Zend_Gdata_Query::setUpdatedMin怎么用?PHP Zend_Gdata_Query::setUpdatedMin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Gdata_Query
的用法示例。
在下文中一共展示了Zend_Gdata_Query::setUpdatedMin方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testSetAndGetUpdatedMin
public function testSetAndGetUpdatedMin()
{
$query = new Zend_Gdata_Query();
$query->setUpdatedMin('2007-01-01');
$this->assertEquals('2007-01-01', $query->getUpdatedMin());
$this->assertContains('updated-min=2007-01-01', $query->getQueryUrl());
}
示例2: testSetAndGetUpdatedMin
public function testSetAndGetUpdatedMin()
{
$query = new Zend_Gdata_Query();
$query->setUpdatedMin('2007-01-01');
$this->assertEquals('2007-01-01T00:00:00', $query->getUpdatedMin());
$this->assertTrue(strpos($query->getQueryUrl(), 'updated-min=2007-01-01') !== false);
}
示例3: getRecentlyAddedContactsFromOfuz
/**
* retrieves all the contacts which are recently added to Gmail from OFUZ
* @return array : contacts
*/
function getRecentlyAddedContactsFromOfuz()
{
global $_SESSION, $_GET;
$client = $this->client;
$useremailid = urlencode($_SESSION["uEmail"]);
// Create a Gdata object using the authenticated Http Client
$gdata = new Zend_Gdata($client);
//$query = new Zend_Gdata_Query('http://www.google.com/m8/feeds/contacts/'.$_SESSION["uEmail"].'%40gmail.com/full');
$query = new Zend_Gdata_Query('http://www.google.com/m8/feeds/contacts/' . $useremailid . '/full');
$query->setMaxResults(1000);
$date = date("Y-m-d H:i:s");
list($dt, $time) = split(' ', $date);
$updated_min = $dt . "T" . $time;
$query->setUpdatedMin($updated_min);
//to fetch contacts after last updated date
try {
$feed = $gdata->getFeed($query);
//print_r($feed);exit;
foreach ($feed as $entry) {
$data = $this->pushContactIntoArray($entry);
$contacts[] = $data;
}
return $contacts;
} catch (Exception $e) {
$status_code = $gdata->getHttpClient()->getLastResponse()->getStatus();
$this->status_code_desc = $this->getStatusDescription($status_code);
}
}