[ 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_newsfeeds 6 * 7 * @copyright (C) 2006 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\Newsfeeds\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 * Newsfeeds Component Controller 21 * 22 * @since 1.5 23 */ 24 class DisplayController extends BaseController 25 { 26 /** 27 * Method to show a newsfeeds view 28 * 29 * @param boolean $cachable If true, the view output will be cached 30 * @param array $urlparams An array of safe URL parameters and their variable types, for valid values see {@link \JFilterInput::clean()}. 31 * 32 * @return static This object to support chaining. 33 * 34 * @since 1.5 35 */ 36 public function display($cachable = false, $urlparams = false) 37 { 38 $cachable = true; 39 40 // Set the default view name and format from the Request. 41 $vName = $this->input->get('view', 'categories'); 42 $this->input->set('view', $vName); 43 44 if ($this->app->getIdentity()->get('id') || ($this->input->getMethod() === 'POST' && $vName === 'category' )) { 45 $cachable = false; 46 } 47 48 $safeurlparams = array('id' => 'INT', 'limit' => 'UINT', 'limitstart' => 'UINT', 49 'filter_order' => 'CMD', 'filter_order_Dir' => 'CMD', 'lang' => 'CMD'); 50 51 return parent::display($cachable, $safeurlparams); 52 } 53 }
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 |