Sindbad~EG File Manager

Current Path : /var/www/ispania.gr/plugins/kunena/easysocial/
Upload File :
Current File : /var/www/ispania.gr/plugins/kunena/easysocial/avatar.php

<?php
/**
 * @package        EasySocial
 * @copyright      Copyright (C) 2010 - 2014 Stack Ideas Sdn Bhd. All rights reserved.
 * @license        GNU/GPL, see LICENSE.php
 * EasySocial is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */
defined('_JEXEC') or die('Unauthorized Access');

/**
 * Class KunenaAvatarEasySocial
 * @since       Kunena
 */
class KunenaAvatarEasySocial extends KunenaAvatar
{
	protected $params = null;

	/**
	 * KunenaAvatarEasySocial constructor.
	 *
	 * @param $params
	 *
	 * @since       Kunena
	 *
	 */
	public function __construct($params)
	{
		$this->params = $params;
	}

	/**
	 * @param $userlist
	 *
	 * @since       Kunena
	 *
	 */
	public function load($userlist)
	{
		KUNENA_PROFILER ? KunenaProfiler::instance()->start('function ' . __CLASS__ . '::' . __FUNCTION__ . '()') : null;

		if (class_exists('CFactory') && method_exists('CFactory', 'loadUsers'))
		{
			CFactory::loadUsers($userlist);
		}

		KUNENA_PROFILER ? KunenaProfiler::instance()->stop('function ' . __CLASS__ . '::' . __FUNCTION__ . '()') : null;
	}

	/**
	 * @return mixed
	 * @since       Kunena
	 *
	 */
	public function getEditURL()
	{
		return FRoute::profile(array('layout' => 'edit'));
	}

	/**
	 * @param $user
	 * @param $sizex
	 * @param $sizey
	 *
	 * @return mixed
	 * @since       Kunena
	 * @throws Exception
	 */
	protected function _getURL($user, $sizex, $sizey)
	{
		$user = KunenaFactory::getUser($user);

		$user = FD::user($user->userid);

		$avatar = $user->getAvatar(SOCIAL_AVATAR_LARGE);

		return $avatar;
	}
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists