Location: PHPKode > scripts > Avatar Tools > helpers/params.php
<?php
/**
 * @version		$Id: coolfeed.php 100 2012-04-14 17:42:51Z hide@address.com $
 * @copyright	JoomAvatar.com
 * @author		Nguyen Quang Trung
 * @link		http://joomavatar.com
 * @license		License GNU General Public License version 2 or later http://www.gnu.org/licenses/gpl-2.0.html
 * @package		Avatar Dream Framework Template
 * @facebook 	http://www.facebook.com/pages/JoomAvatar/120705031368683
 * @twitter	    https://twitter.com/#!/JoomAvatar
 * @support 	http://joomavatar.com/forum/
 */

// no direct access
defined('_JEXEC') or die;

class PlgAvatarParams {
	
	protected static $_params;
	
	public static function setParams()
	{
		$db = JFactory::getDBO();
		$query 	= $db->getQuery(true);
		
		$query->select('*')
		->from('#__avatar_tool_params');
		
		$db->setQuery($query);
		
		$resutl = $db->loadResult();
		
		self::$_params = json_decode($resutl); 	
	} 
	
	public static function getParams() {
		self::setParams();
		return self::$_params;
	}
}
Return current item: Avatar Tools