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


PHP JFactory::GetLanguage方法代碼示例

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


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

示例1: __construct

 function __construct($config = array())
 {
     parent::__construct($config);
     $lang = JFactory::GetLanguage();
     $lang->load('com_djcatalog2');
     $this->registerTask('modfp', 'getFrontpageXMLData');
 }
開發者ID:jputz12,項目名稱:OneNow-Vshop,代碼行數:7,代碼來源:controller.php

示例2: __construct

 function __construct($config = array())
 {
     parent::__construct($config);
     $lang = JFactory::GetLanguage();
     $lang->load('com_djclassifieds');
     $par = JComponentHelper::getParams('com_djclassifieds');
     $notify_days = $par->get('notify_days', '0');
     if ($notify_days > 0 && $par->get('notify_days_trigger', '1') == 2) {
         DJClassifiedsNotify::notifyExpired(5, 0);
     }
     //$this->registerTask( 'modfp',  'getFrontpageXMLData' );
 }
開發者ID:kidaa30,項目名稱:lojinha,代碼行數:12,代碼來源:controller.php

示例3: jimport

*/
$document = JFactory::getDocument();
if (JRequest::getVar('view') == 'item') {
    if ($par->get('lightbox_type', 'slimbox') == 'picbox') {
        $assets = JURI::base(true) . '/components/com_djclassifieds/assets/picbox/';
        $document->addScript($assets . 'js/picbox.js');
        $document->addStyleSheet($assets . 'css/picbox.css');
    } else {
        $assets = JURI::base(true) . '/components/com_djclassifieds/assets/slimbox-1.8/';
        $document->addScript($assets . 'js/slimbox.js');
        $document->addStyleSheet($assets . 'css/slimbox.css');
    }
}
DJClassifiedsTheme::includeCSSfiles();
require_once JPATH_COMPONENT . DS . 'controller.php';
$lang = JFactory::GetLanguage();
if ($lang->getTag() != 'en-GB') {
    $lang = JFactory::getLanguage();
    $lang->load('com_djclassifieds', JPATH_SITE . '/components/com_djclassifieds', 'en-GB', true, false);
    if ($lang->getTag() == 'pl-PL') {
        $lang->load('com_djclassifieds', JPATH_SITE . '/components/com_djclassifieds', '', true, false);
    } else {
        $lang->load('com_djclassifieds', JPATH_SITE, '', true, false);
    }
}
$view = JRequest::getCmd('view', 'show');
if ($view == 'item' || $view == 'items' || $view == 'additem' || $view == 'payment' || $view == 'renewitem' || $view == 'profileedit' || $view == 'contact' || $view == 'checkout' || $view == 'registration') {
    $path = JPATH_COMPONENT . DS . 'controllers' . DS . $view . '.php';
    jimport('joomla.filesystem.file');
    if (JFile::exists($path)) {
        require_once $path;
開發者ID:kidaa30,項目名稱:lojinha,代碼行數:31,代碼來源:djclassifieds.php


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