[ 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_tags 6 * 7 * @copyright (C) 2013 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\Tags\Site\Controller; 12 13 use Joomla\CMS\MVC\Controller\BaseController; 14 15 // phpcs:disable PSR1.Files.SideEffects 16 \defined('_JEXEC') or die; 17 // phpcs:enable PSR1.Files.SideEffects 18 19 /** 20 * Tags Component Controller 21 * 22 * @since 3.1 23 */ 24 class DisplayController extends BaseController 25 { 26 /** 27 * Method to display a view. 28 * 29 * @param boolean $cachable If true, the view output will be cached 30 * @param mixed|boolean $urlparams An array of safe URL parameters and their 31 * variable types, for valid values see {@link \JFilterInput::clean()}. 32 * 33 * @return static This object to support chaining. 34 * 35 * @since 3.1 36 */ 37 public function display($cachable = false, $urlparams = false) 38 { 39 $user = $this->app->getIdentity(); 40 41 // Set the default view name and format from the Request. 42 $vName = $this->input->get('view', 'tags'); 43 $this->input->set('view', $vName); 44 45 if ($user->get('id') || ($this->input->getMethod() === 'POST' && $vName === 'tags')) { 46 $cachable = false; 47 } 48 49 $safeurlparams = array( 50 'id' => 'ARRAY', 51 'type' => 'ARRAY', 52 'limit' => 'UINT', 53 'limitstart' => 'UINT', 54 'filter_order' => 'CMD', 55 'filter_order_Dir' => 'CMD', 56 'lang' => 'CMD' 57 ); 58 59 return parent::display($cachable, $safeurlparams); 60 } 61 }
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 |