本文整理汇总了PHP中KunenaUserHelper::initialize方法的典型用法代码示例。如果您正苦于以下问题:PHP KunenaUserHelper::initialize方法的具体用法?PHP KunenaUserHelper::initialize怎么用?PHP KunenaUserHelper::initialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KunenaUserHelper
的用法示例。
在下文中一共展示了KunenaUserHelper::initialize方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
<?php
/**
* Kunena Component
* @package Kunena.Framework
* @subpackage User
*
* @copyright (C) 2008 - 2012 Kunena Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link http://www.kunena.org
**/
defined('_JEXEC') or die;
KunenaUserHelper::initialize();
/**
* Kunena User Helper Class
*/
abstract class KunenaUserHelper
{
protected static $_instances = array();
protected static $_instances_name = array();
protected static $_online = null;
protected static $_lastid = null;
protected static $_total = null;
protected static $_topposters = null;
protected static $_me = null;
public static function initialize()
{
$id = JFactory::getUser()->id;
self::$_me = self::$_instances[$id] = new KunenaUser($id);
}
/**