本文整理汇总了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"> </div>';
$page_output->header(array('title' => sprintf(_("My %s"), $registry->get('name'))));
$notification->notify(array('listeners' => 'status'));
echo $layout_html;
$page_output->footer();