CoreFiles by mySites.guru
site.php41 lines, 790 bytes, from Joomla_3.3.2-Stable-Full_Package.zip
Raw History Compare with 3.3.1
md5
b38e9d2524295d20319882dbb5376875
sha1
fd4c41daa8190e5be78cf6dd0e2a74a62aa6e2e8
sha256
b702626dc501d82b6ade0397472072bf98039449a1599cdc10c1cfda4cc4e3da
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_search
 *
 * @copyright   Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Mock JSite class used to fool the frontend search plugins because they route the results.
 *
 * @package     Joomla.Administrator
 * @subpackage  com_search
 * @since       1.5
 */
class JSite extends JObject
{
	/**
	 * False method to fool the frontend search plugins
	 *
	 * @since  1.5
	 */
	public function getMenu()
	{
		$result = new JSite;
		return $result;
	}

	/**
	 * False method to fool the frontend search plugins
	 *
	 * @since  1.5
	 */
	public function getItems()
	{
		return array();
	}
}

The same content is in 13 releases, Joomla 3.2.2 to 3.3.6. See them all, or every version of this file.