[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * Joomla! Content Management System 5 * 6 * @copyright (C) 2007 Open Source Matters, Inc. <https://www.joomla.org> 7 * @license GNU General Public License version 2 or later; see LICENSE.txt 8 */ 9 10 namespace Joomla\CMS\Router; 11 12 use Joomla\CMS\Uri\Uri; 13 14 // phpcs:disable PSR1.Files.SideEffects 15 \defined('JPATH_PLATFORM') or die; 16 // phpcs:enable PSR1.Files.SideEffects 17 18 /** 19 * Class to create and parse routes 20 * 21 * @since 1.5 22 */ 23 class AdministratorRouter extends Router 24 { 25 /** 26 * Function to convert a route to an internal URI. 27 * 28 * @param Uri &$uri The uri. 29 * @param bool $setVars Set the parsed data in the internal 30 * storage for current-request-URLs 31 * 32 * @return array 33 * 34 * @since 1.5 35 */ 36 public function parse(&$uri, $setVars = false) 37 { 38 return array(); 39 } 40 41 /** 42 * Function to convert an internal URI to a route 43 * 44 * @param string $url The internal URL 45 * 46 * @return Uri The absolute search engine friendly URL 47 * 48 * @since 1.5 49 */ 50 public function build($url) 51 { 52 // Create the URI object 53 $uri = parent::build($url); 54 55 // Get the path data 56 $route = $uri->getPath(); 57 58 // Add basepath to the uri 59 $uri->setPath(Uri::root(true) . '/' . basename(JPATH_ADMINISTRATOR) . '/' . $route); 60 61 return $uri; 62 } 63 }
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 |