本文整理汇总了PHP中SearchHelper::getForums方法的典型用法代码示例。如果您正苦于以下问题:PHP SearchHelper::getForums方法的具体用法?PHP SearchHelper::getForums怎么用?PHP SearchHelper::getForums使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SearchHelper
的用法示例。
在下文中一共展示了SearchHelper::getForums方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: search_get_forum_hash
function search_get_forum_hash()
{
global $_G;
require_once DISCUZ_ROOT . './api/manyou/Manyou.php';
loadcache('search_forum_hash');
if (TIMESTAMP - $_G['cache']['search_forum_hash']['ts'] > 21600) {
$my_forums = SearchHelper::getForums();
$data = array('ts' => TIMESTAMP, 'sign' => $my_forums['sign']);
save_syscache('search_forum_hash', $data);
} else {
$data = $_G['cache']['search_forum_hash'];
}
return $data['sign'];
}
示例2: onSearchGetForums
function onSearchGetForums($fIds = array())
{
return SearchHelper::getForums($fIds);
}
示例3: array_push
if (is_array($v)) {
array_push($ret, my_http_build_query($v, $k, $isEncode));
} else {
if ($isEncode) {
$v = urlencode($v);
}
array_push($ret, $k . "=" . $v);
}
}
return join('&', $ret);
}
if (!$_G['setting']['my_siteid']) {
dheader('Location: index.php');
}
require_once DISCUZ_ROOT . './api/manyou/Manyou.php';
$my_forums = SearchHelper::getForums();
$my_extgroupids = array();
$_extgroupids = explode("\t", $_G['member']['extgroupids']);
foreach ($_extgroupids as $v) {
if ($v) {
$my_extgroupids[] = $v;
}
}
$my_extgroupids_str = implode(',', $my_extgroupids);
$params = array('sId' => $_G['setting']['my_siteid'], 'ts' => time(), 'cuId' => $_G['uid'], 'cuName' => $_G['username'], 'gId' => $_G['groupid'], 'agId' => $_G['adminid'], 'egIds' => $my_extgroupids_str, 'fmSign' => substr($my_forums['sign'], -4));
$groupIds = explode(',', $_G['groupid']);
if ($_G['adminid']) {
$groupIds[] = $_G['adminid'];
}
if ($my_extgroupids) {
$groupIds = array_merge($groupIds, $my_extgroupids);