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