[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Administrator 5 * @subpackage com_admin 6 * 7 * @copyright (C) 2008 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\Admin\Administrator\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 * Admin Controller 21 * 22 * @since 1.6 23 */ 24 class DisplayController extends BaseController 25 { 26 /** 27 * View method 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 Supports chaining. 33 * 34 * @since 3.9 35 */ 36 public function display($cachable = false, $urlparams = array()) 37 { 38 $viewName = $this->input->get('view', $this->default_view); 39 $format = $this->input->get('format', 'html'); 40 41 // Check CSRF token for sysinfo export views 42 if ($viewName === 'sysinfo' && ($format === 'text' || $format === 'json')) { 43 // Check for request forgeries. 44 $this->checkToken('GET'); 45 } 46 47 return parent::display($cachable, $urlparams); 48 } 49 }
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 |