[ 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_modules 6 * 7 * @copyright (C) 2017 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\Modules\Site\Controller; 12 13 use Joomla\CMS\Application\CMSApplication; 14 use Joomla\CMS\Factory; 15 use Joomla\CMS\Input\Input; 16 use Joomla\CMS\MVC\Controller\BaseController; 17 use Joomla\CMS\MVC\Factory\MVCFactoryInterface; 18 19 // phpcs:disable PSR1.Files.SideEffects 20 \defined('_JEXEC') or die; 21 // phpcs:enable PSR1.Files.SideEffects 22 23 /** 24 * Modules manager master display controller. 25 * 26 * @since 3.5 27 */ 28 class DisplayController extends BaseController 29 { 30 /** 31 * @param array $config An optional associative array of configuration settings. 32 * Recognized key values include 'name', 'default_task', 'model_path', and 33 * 'view_path' (this list is not meant to be comprehensive). 34 * @param MVCFactoryInterface|null $factory The factory. 35 * @param CMSApplication|null $app The Application for the dispatcher 36 * @param Input|null $input The Input object for the request 37 * 38 * @since 3.0 39 */ 40 public function __construct($config = array(), MVCFactoryInterface $factory = null, $app = null, $input = null) 41 { 42 $this->input = Factory::getApplication()->input; 43 44 // Modules frontpage Editor Module proxying. 45 if ($this->input->get('view') === 'modules' && $this->input->get('layout') === 'modal') { 46 $config['base_path'] = JPATH_COMPONENT_ADMINISTRATOR; 47 } 48 49 parent::__construct($config, $factory, $app, $input); 50 } 51 }
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 |