[ 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_login 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\Login\Administrator\Dispatcher; 12 13 use Joomla\CMS\Dispatcher\ComponentDispatcher; 14 15 // phpcs:disable PSR1.Files.SideEffects 16 \defined('_JEXEC') or die; 17 // phpcs:enable PSR1.Files.SideEffects 18 19 /** 20 * ComponentDispatcher class for com_login 21 * 22 * @since 4.0.0 23 */ 24 class Dispatcher extends ComponentDispatcher 25 { 26 /** 27 * Dispatch a controller task. 28 * 29 * @return void 30 * 31 * @since 4.0.0 32 */ 33 public function dispatch() 34 { 35 // Only accept two values login and logout for `task` 36 $task = $this->input->get('task'); 37 38 if ($task != 'login' && $task != 'logout') { 39 $this->input->set('task', ''); 40 } 41 42 // Reset controller name 43 $this->input->set('controller', null); 44 45 parent::dispatch(); 46 } 47 48 /** 49 * com_login does not require check permission, so we override checkAccess method and have it empty 50 * 51 * @return void 52 */ 53 protected function checkAccess() 54 { 55 } 56 }
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 |