english/administrator/components/com_search/controllers/searches.php
/**
	 * Method to reset the seach log table.
	 *
	 * @return	boolean
	 */
Method to reset the seach log table.
@return      boolean
Method to reset the seach log table . @return boolean
public function reset()
	{
		JRequest::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
		$model = $this->getModel('Searches');
		if (!$model->reset()) {
			JError::raiseWarning(500, $model->getError());
		}
		$this->setRedirect('index.php?option=com_search&view=searches');
	}
public function reset ( ) { JRequest :: checkToken ( ) or jexit ( JText :: _ ( 'JINVALID_TOKEN' ) ) ; $ model = $ this -> getModel ( 'Searches' ) ; if ( ! $ model -> reset ( ) ) { JError :: raiseWarning ( 500 , $ model -> getError ( ) ) ; } $ this -> setRedirect ( 'index.php?option=com_search&view=searches' ) ; }
Method to reset the seach log table.
Method to reset the seach log table .
// Check for request forgeries. // Initialise variables.