Source for file site.php

Documentation is available at site.php

  1. <?php
  2. /**
  3.  * @package     Joomla.Administrator
  4.  * @subpackage  com_search
  5.  *
  6.  * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
  7.  * @license     GNU General Public License version 2 or later; see LICENSE.txt
  8.  */
  9.  
  10. defined('_JEXEC'or die;
  11.  
  12. /**
  13.  * Mock JSite class used to fool the frontend search plugins because they route the results.
  14.  *
  15.  * @package     Joomla.Administrator
  16.  * @subpackage  com_search
  17.  * @since       1.5
  18.  */
  19. class JSite extends JObject
  20. {
  21.     /**
  22.      * False method to fool the frontend search plugins
  23.      *
  24.      * @since  1.5
  25.      */
  26.     public function getMenu()
  27.     {
  28.         $result new JSite;
  29.         return $result;
  30.     }
  31.  
  32.     /**
  33.      * False method to fool the frontend search plugins
  34.      *
  35.      * @since  1.5
  36.      */
  37.     public function getItems()
  38.     {
  39.         return array();
  40.     }
  41. }

Documentation generated on Tue, 19 Nov 2013 15:13:52 +0100 by phpDocumentor 1.4.3