芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/administrator.1/components/com_finder/src/Controller/SearchesController.php
* @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Component\Finder\Administrator\Controller; \defined('_JEXEC') or die; use Joomla\CMS\Language\Text; use Joomla\CMS\MVC\Controller\BaseController; use Joomla\CMS\Session\Session; /** * Methods supporting a list of search terms. * * @since 4.0.0 */ class SearchesController extends BaseController { /** * Method to reset the search log table. * * @return void */ public function reset() { // Check for request forgeries. Session::checkToken() or jexit(Text::_('JINVALID_TOKEN')); $model = $this->getModel('Searches'); if (!$model->reset()) { $this->app->enqueueMessage($model->getError(), 'error'); } $this->setRedirect('index.php?option=com_finder&view=searches'); } }