本文整理匯總了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');
示例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');
}