本文整理汇总了PHP中Jfactory::getLanguage方法的典型用法代码示例。如果您正苦于以下问题:PHP Jfactory::getLanguage方法的具体用法?PHP Jfactory::getLanguage怎么用?PHP Jfactory::getLanguage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Jfactory
的用法示例。
在下文中一共展示了Jfactory::getLanguage方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getLanguage
public static function getLanguage()
{
if (!self::$language) {
self::$language = ARKLanguage::getInstance('en-GB');
$lang = Jfactory::getLanguage();
self::$language->merge($lang);
}
return self::$language;
}
示例2: defined
// Title PrayerCenter Latest Prayer Module for Joomla 1.5
// Author Mike Leeper
// Version 1.5.0
// License This is free software and you may redistribute it under the GPL.
// PrayerCenter Latest Prayer comes with absolutely no warranty. For details,
// see the license at http://www.gnu.org/licenses/gpl.txt
// YOU ARE NOT REQUIRED TO KEEP COPYRIGHT NOTICES IN
// THE HTML OUTPUT OF THIS SCRIPT. YOU ARE NOT ALLOWED
// TO REMOVE COPYRIGHT NOTICES FROM THE SOURCE CODE.
//
// ******************************************************************************************
defined('_JEXEC') or die('Restricted access');
// no direct access
global $mainframe;
$livesite = JURI::base();
$lang =& Jfactory::getLanguage();
$lang->load('com_prayercenter', JPATH_SITE);
$count = $params->get('count');
$rssurl = $params->get('rss url');
// $livesite.'/index.php?option=com_prayercenter&task=rss';
$options = array();
$options['rssUrl'] = $rssurl;
if ($params->get('cache')) {
$options['cache_time'] = $params->get('cache_time', 15);
$options['cache_time'] *= 60;
} else {
$options['cache_time'] = null;
}
$modRssDoc =& JFactory::getXMLparser('RSS', $options);
$feed = new stdclass();
if ($modRssDoc != false) {