本文整理汇总了PHP中Zend_Service_Delicious::getAllPosts方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Service_Delicious::getAllPosts方法的具体用法?PHP Zend_Service_Delicious::getAllPosts怎么用?PHP Zend_Service_Delicious::getAllPosts使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Service_Delicious
的用法示例。
在下文中一共展示了Zend_Service_Delicious::getAllPosts方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testGetAllPosts
/**
* Ensures that getAllPosts() provides expected behavior
*
* @return void
*/
public function testGetAllPosts()
{
$posts = $this->_delicious->getAllPosts('zfSite');
$this->assertType('Zend_Service_Delicious_PostList', $posts);
foreach ($posts as $post) {
$this->assertContains('zfSite', $post->getTags());
}
}
示例2: die
}
case 'add_sync_start':
if (!$p->User->vxIsLogin()) {
die($p->URL->vxToRedirect($p->URL->vxGetLogin($p->URL->vxGetAddSync())));
break;
} else {
$sync = array();
$sync['status'] = 'default';
if (isset($_POST['d_u']) && isset($_POST['d_p'])) {
$del_user = fetch_single($_POST['d_u']);
$del_pass = fetch_single($_POST['d_p']);
if ($del_user != '' && $del_pass != '') {
require_once 'Zend/Service/Delicious.php';
$del = new Zend_Service_Delicious($del_user, $del_pass);
try {
$posts = $del->getAllPosts();
} catch (Zend_Service_Delicious_Exception $e) {
$posts = false;
$sync['status'] = 'error';
}
if ($posts) {
var_dump($posts);
$result = Add::vxSync($p->User, $p->db, $posts);
var_dump($result);
}
} else {
$sync['status'] = 'default';
}
} else {
$sync['status'] = 'default';
}