Source for file searches.php

Documentation is available at searches.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.  * Methods supporting a list of search terms.
  14.  *
  15.  * @package     Joomla.Administrator
  16.  * @subpackage  com_search
  17.  * @since       1.6
  18.  */
  19. {
  20.     /**
  21.      * Method to reset the seach log table.
  22.      *
  23.      * @return  boolean 
  24.      */
  25.     public function reset()
  26.     {
  27.         // Check for request forgeries.
  28.         JSession::checkToken(or jexit(JText::_('JINVALID_TOKEN'));
  29.  
  30.         $model $this->getModel('Searches');
  31.  
  32.         if (!$model->reset())
  33.         {
  34.             JError::raiseWarning(500$model->getError());
  35.         }
  36.  
  37.         $this->setRedirect('index.php?option=com_search&view=searches');
  38.     }
  39. }

Documentation generated on Tue, 19 Nov 2013 15:12:44 +0100 by phpDocumentor 1.4.3