當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Whups::addFeedLink方法代碼示例

本文整理匯總了PHP中Whups::addFeedLink方法的典型用法代碼示例。如果您正苦於以下問題:PHP Whups::addFeedLink方法的具體用法?PHP Whups::addFeedLink怎麽用?PHP Whups::addFeedLink使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Whups的用法示例。


在下文中一共展示了Whups::addFeedLink方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: serialize

/**
 * Copyright 2002-2015 Horde LLC (http://www.horde.org/)
 *
 * See the enclosed file LICENSE for license information (BSD). If you
 * did not receive this file, see http://www.horde.org/licenses/bsdl.php.
 *
 * @author Chuck Hagenbuch <chuck@horde.org>
 */
require_once __DIR__ . '/lib/Application.php';
Horde_Registry::appInit('whups');
// Get refresh interval.
if ($r_time = $prefs->getValue('summary_refresh_time') && !$browser->hasFeature('xmlhttpreq')) {
    $page_output->metaRefresh($r_time, Horde::url('mybugs.php'));
}
Whups::addTopbarSearch();
// Load layout from preferences for authenticated users, and a default
// block set for guests.
if (!$registry->isAuthenticated()) {
    $prefs->setValue('mybugs_layout', serialize(array(array(array('app' => 'whups', 'params' => array('type2' => 'whups_Block_Myqueries', 'params' => false), 'height' => 1, 'width' => 1)), array(array('app' => 'whups', 'params' => array('type2' => 'whups_Block_Queuesummary', 'params' => false), 'height' => 1, 'width' => 1)))));
} elseif (!@unserialize($prefs->getValue('mybugs_layout'))) {
    $prefs->setValue('mybugs_layout', serialize(array(array(array('app' => 'whups', 'params' => array('type2' => 'whups_Block_Mytickets', 'params' => false), 'height' => 1, 'width' => 1)), array(array('app' => 'whups', 'params' => array('type2' => 'whups_Block_Myrequests', 'params' => false), 'height' => 1, 'width' => 1)), array(array('app' => 'whups', 'params' => array('type2' => 'whups_Block_Myqueries', 'params' => false), 'height' => 1, 'width' => 1)))));
}
Whups::addFeedLink();
$layout = new Horde_Core_Block_Layout_View($injector->getInstance('Horde_Core_Factory_BlockCollection')->create(array('whups'), 'mybugs_layout')->getLayout(), Horde::url('mybugs_edit.php'), Horde::url('mybugs.php', true));
$layout_html = $layout->toHtml();
$menuBottom = '<div id="menuBottom"><a href="' . Horde::url('mybugs_edit.php') . '">' . _("Add Content") . '</a></div><div class="clear">&nbsp;</div>';
$page_output->header(array('title' => sprintf(_("My %s"), $registry->get('name'))));
$notification->notify(array('listeners' => 'status'));
echo $layout_html;
$page_output->footer();
開發者ID:raz0rsdge,項目名稱:horde,代碼行數:30,代碼來源:mybugs.php


注:本文中的Whups::addFeedLink方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。