当前位置: 首页>>代码示例>>PHP>>正文


PHP Jfactory::getLanguage方法代码示例

本文整理汇总了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;
 }
开发者ID:johngrange,项目名称:wookeyholeweb,代码行数:9,代码来源:helper.php

示例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) {
开发者ID:NinoCoelho,项目名称:SouCristao,代码行数:31,代码来源:mod_versiculododia.php


注:本文中的Jfactory::getLanguage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。