[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Site 5 * @subpackage com_finder 6 * 7 * @copyright (C) 2011 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 namespace Joomla\Component\Finder\Site\Controller; 12 13 use Joomla\CMS\MVC\Controller\BaseController; 14 use Joomla\Component\Finder\Administrator\Helper\LanguageHelper; 15 16 // phpcs:disable PSR1.Files.SideEffects 17 \defined('_JEXEC') or die; 18 // phpcs:enable PSR1.Files.SideEffects 19 20 /** 21 * Finder Component Controller. 22 * 23 * @since 2.5 24 */ 25 class DisplayController extends BaseController 26 { 27 /** 28 * Method to display a view. 29 * 30 * @param boolean $cachable If true, the view output will be cached. [optional] 31 * @param array $urlparams An array of safe URL parameters and their variable types, 32 * for valid values see {@link \JFilterInput::clean()}. [optional] 33 * 34 * @return static This object is to support chaining. 35 * 36 * @since 2.5 37 */ 38 public function display($cachable = false, $urlparams = array()) 39 { 40 $input = $this->app->input; 41 $cachable = true; 42 43 // Load plugin language files. 44 LanguageHelper::loadPluginLanguage(); 45 46 // Set the default view name and format from the Request. 47 $viewName = $input->get('view', 'search', 'word'); 48 $input->set('view', $viewName); 49 50 // Don't cache view for search queries 51 if ($input->get('q', null, 'string') || $input->get('f', null, 'int') || $input->get('t', null, 'array')) { 52 $cachable = false; 53 } 54 55 $safeurlparams = array( 56 'f' => 'INT', 57 'lang' => 'CMD' 58 ); 59 60 return parent::display($cachable, $safeurlparams); 61 } 62 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |