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


PHP shInitializePlugin函數代碼示例

本文整理匯總了PHP中shInitializePlugin函數的典型用法代碼示例。如果您正苦於以下問題:PHP shInitializePlugin函數的具體用法?PHP shInitializePlugin怎麽用?PHP shInitializePlugin使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


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

示例1: defined

 * @author      Yannick Gaultier
 * @copyright   (c) Yannick Gaultier 2012
 * @package     sh404sef
 * @license     http://www.gnu.org/copyleft/gpl.html GNU/GPL
 * @version     4.1.0.1559
 * @date		2013-04-25
 */
defined('_JEXEC') or die('Direct Access to this location is not allowed.');
// ------------------  standard plugin initialize function - don't change ---------------------------
global $sh_LANG;
$sefConfig =& Sh404sefFactory::getConfig();
$shLangName = '';
$shLangIso = '';
$title = array();
$shItemidString = '';
$dosef = shInitializePlugin($lang, $shLangName, $shLangIso, $option);
if ($dosef == false) {
    return;
}
// ------------------  standard plugin initialize function - don't change ---------------------------
// ------------------  load language file - adjust as needed ----------------------------------------
//$shLangIso = shLoadPluginLanguage( 'com_XXXXX', $shLangIso, '_SEF_SAMPLE_TEXT_STRING');
// ------------------  load language file - adjust as needed ----------------------------------------
// remove common URL from GET vars list, so that they don't show up as query string in the URL
shRemoveFromGETVarsList('option');
shRemoveFromGETVarsList('lang');
if (!empty($Itemid)) {
    shRemoveFromGETVarsList('Itemid');
}
if (!empty($limit)) {
    shRemoveFromGETVarsList('limit');
開發者ID:alesconti,項目名稱:FF_2015,代碼行數:31,代碼來源:sample_com_plugin.php

示例2: defined

 * @package     RedSHOP.sh404sef
 * @subpackage  sef_ext sh404sef
 *
 * @copyright   Copyright (C) 2005 - 2013 redCOMPONENT.com. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE
 */
defined('_JEXEC') or die;
// ------------------  standard plugin initialize function - don't change ---------------------------
global $sh_LANG;
$sefConfig = shRouter::shGetConfig();
$db = JFactory::getDbo();
$shLangName = '';
$shLangIso = '';
$title = array();
$shItemidString = '';
$dosef = shInitializePlugin($lang, $shLangName, $shLangIso, 'com_redshop');
if ($dosef == false) {
    return;
}
// ------------------  load language file - adjust as needed ----------------------------------------
$shLangIso = shLoadPluginLanguage('com_redshop', $shLangIso, '_COM_SEF_SH_REDSHOP');
// Getting the configuration
if (!defined('TABLE_PREFIX')) {
    require_once JPATH_ADMINISTRATOR . '/components/com_redshop/helpers/redshop.cfg.php';
}
include_once "administrator/components/com_redshop/helpers/category.php";
$product_category = new product_category();
shRemoveFromGETVarsList('option');
if (!empty($lang)) {
    shRemoveFromGETVarsList('lang');
}
開發者ID:jaanusnurmoja,項目名稱:redjoomla,代碼行數:31,代碼來源:com_redshop.php


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