CoreFiles by mySites.guru
site.php41 lines, 790 bytes, from Joomla_3.0.1-Stable-Full_Package.zip
Raw History Compare with 3.0.0
md5
95c384c178708ab3eb73cc874161de52
sha1
a290f75f8873be65fb927571cf1b6623836ccff5
sha256
04061c85e34754caa354aad90bd1e036fc6d78763b364a8609b2efd1237f8753
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_search
 *
 * @copyright   Copyright (C) 2005 - 2012 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 3 releases, Joomla 3.0.0 to 3.0.2. See them all, or every version of this file.