CoreFiles by mySites.guru
site.php41 lines, 790 bytes, from Joomla_3.0.4-Stable-Full_Package.zip
Raw History Compare with 3.0.3
md5
1117ce99f767d6738be5bea7a76aee63
sha1
ee999628d08d304de234aa3af3a740c2951e88b4
sha256
cbba6f15f493215dcb598cbdb5121a2b578340d52e948531bdacc8effd6db90b
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_search
 *
 * @copyright   Copyright (C) 2005 - 2013 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 9 releases, Joomla 3.0.3 to 3.2.1. See them all, or every version of this file.