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


PHP SearchHelper::getForums方法代碼示例

本文整理匯總了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'];
}
開發者ID:pan289091315,項目名稱:Discuz,代碼行數:14,代碼來源:function_search.php

示例2: onSearchGetForums

 function onSearchGetForums($fIds = array())
 {
     return SearchHelper::getForums($fIds);
 }
開發者ID:Kingson4Wu,項目名稱:php_demo,代碼行數:4,代碼來源:my.php

示例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);
開發者ID:v998,項目名稱:discuzx-en,代碼行數:31,代碼來源:search_my.php


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