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


PHP XWB_plugin::F方法代碼示例

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


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

示例1: exit

<?php

/*
 * @version $Id: space.hack.php 375 2010-12-08 06:06:11Z yaoying $
 */
if (!defined('IS_IN_XWB_PLUGIN')) {
    exit('Access Denied!');
}
$sina_uid = XWB_plugin::F('sinaUidFilter', array($uid));
$appkey = XWB_APP_KEY;
//簽名解析
$GLOBALS['space']['sightml'] = isset($GLOBALS['space']['sightml']) ? XWB_plugin::F('xwb_format_signature', $GLOBALS['space']['sightml']) : '';
開發者ID:chibimiku,項目名稱:xweibo_for_discuz_x2_php7,代碼行數:12,代碼來源:space.hack.php

示例2: exit

<?php

/*
 * @version $Id: viewthread.hack.php 673 2011-05-03 02:06:05Z yaoying $
 */
if (!defined('IS_IN_XWB_PLUGIN')) {
    exit('Access Denied!');
}
global $_G;
$uids = array();
$sina_uid = array();
foreach ($GLOBALS['postlist'] as $key => $row) {
    $uids[] = (int) $row['authorid'];
    //簽名替換
    $GLOBALS['postlist'][$key]['signature'] = isset($row['signature']) ? XWB_plugin::F('xwb_format_signature', $row['signature']) : '';
    if ($row['first'] && XWB_plugin::pCfg('is_rebutton_display')) {
        $this->viewthread_subject = $row['subject'];
    }
}
$sina_uid = XWB_plugin::F('sinaUidFilter', $uids, false);
開發者ID:chibimiku,項目名稱:xweibo_for_discuz_x2_php7,代碼行數:20,代碼來源:viewthread.hack.php

示例3: _parse_postlist_in_viewthread

 /**
  * 解析$GLOBALS['postlist']
  * @access protected
  */
 function _parse_postlist_in_viewthread()
 {
     global $_G;
     if (empty($GLOBALS['postlist']) || !is_array($GLOBALS['postlist']) || true === $this->_parsed_postlist) {
         return $this->_parsed_postlist;
     }
     require XWB_plugin::hackFile('viewthread');
     foreach ($GLOBALS['postlist'] as $pid => $onePost) {
         $this->viewthread_sidetop_return[] = $this->_html_sidetop($onePost, $sina_uid);
         $this->viewthread_imicons_return[] = $this->_html_imicons($onePost, $sina_uid);
         $this->viewthread_postfooter_return[] = $this->_html_postfooter($pid, $onePost, $sina_uid);
     }
     if (!empty($_G['gp_viewpid'])) {
         global $post;
         $post['signature'] = isset($post['signature']) ? XWB_plugin::F('xwb_format_signature', $post['signature']) : '';
     }
     $this->_parsed_postlist = true;
     return true;
 }
開發者ID:chibimiku,項目名稱:xweibo_for_discuz_x2_php7,代碼行數:23,代碼來源:hook.class.php


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