<?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); } /**