[ 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_wrapper 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\Wrapper\Site\Service; 12 13 use Joomla\CMS\Component\Router\RouterBase; 14 15 // phpcs:disable PSR1.Files.SideEffects 16 \defined('_JEXEC') or die; 17 // phpcs:enable PSR1.Files.SideEffects 18 19 /** 20 * Routing class from com_wrapper 21 * 22 * @since 3.3 23 */ 24 class Router extends RouterBase 25 { 26 /** 27 * Build the route for the com_wrapper component 28 * 29 * @param array $query An array of URL arguments 30 * 31 * @return array The URL arguments to use to assemble the subsequent URL. 32 * 33 * @since 3.3 34 */ 35 public function build(&$query) 36 { 37 if (isset($query['view'])) { 38 unset($query['view']); 39 } 40 41 return array(); 42 } 43 44 /** 45 * Parse the segments of a URL. 46 * 47 * @param array $segments The segments of the URL to parse. 48 * 49 * @return array The URL attributes to be used by the application. 50 * 51 * @since 3.3 52 */ 53 public function parse(&$segments) 54 { 55 return array('view' => 'wrapper'); 56 } 57 }
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 |