本文整理匯總了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';
}