[ Index ]

PHP Cross Reference of Joomla 1.5.26 DE

title

Body

[close]

/administrator/components/com_search/ -> controller.php (source)

   1  <?php
   2  /**
   3   * @version        $Id: controller.php 14401 2010-01-26 14:10:00Z louis $
   4   * @package        Joomla
   5   * @subpackage    Search
   6   * @copyright    Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
   7   * @license        GNU/GPL, see LICENSE.php
   8   * Joomla! is free software. This version may have been modified pursuant to the
   9   * GNU General Public License, and as distributed it includes or is derivative
  10   * of works licensed under the GNU General Public License or other free or open
  11   * source software licenses. See COPYRIGHT.php for copyright notices and
  12   * details.
  13   */
  14  
  15  // Check to ensure this file is included in Joomla!
  16  defined('_JEXEC') or die( 'Restricted access' );
  17  
  18  jimport('joomla.application.component.controller');
  19  
  20  /**
  21   * @package        Joomla
  22   * @subpackage    Search
  23   */
  24  class SearchController extends JController
  25  {
  26      /**
  27       * Show Search Statistics
  28       */
  29  	function display()
  30      {
  31          $model    =& $this->getModel( 'Search' );
  32          $view   =& $this->getView( 'Search' );
  33          $view->setModel( $model, true );
  34          $view->display();
  35      }
  36  
  37      /**
  38       * Reset Statistics
  39       */
  40  	function reset()
  41      {
  42          $model    =& $this->getModel( 'Search' );
  43          $model->reset();
  44          $this->setRedirect('index.php?option=com_search');
  45      }
  46  }


Generated: Wed Mar 28 15:54:07 2012 Cross-referenced by PHPXref 0.7.1