0% found this document useful (0 votes)
4 views1 page

Joomla Router Class for URL Management

The document contains PHP code for the JRouterInstallation class, part of the Joomla Installation package. It includes methods for parsing and building routes, specifically converting between internal URIs and search engine friendly URLs. The code is designed for Joomla version 1.5 and adheres to the GNU General Public License.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Joomla Router Class for URL Management

The document contains PHP code for the JRouterInstallation class, part of the Joomla Installation package. It includes methods for parsing and building routes, specifically converting between internal URIs and search engine friendly URLs. The code is designed for Joomla version 1.5 and adheres to the GNU General Public License.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

C:\Users\Ionut\AppData\Local\Temp\Rar$DIa7036.41076\router.

php marți, 13 septembrie 2022 18:17

<?php
/**
* @package [Link]
*
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see [Link]
*/

defined('_JEXEC') or die;

/**
* Class to create and parse routes.
*
* @since 1.5
*/
class JRouterInstallation extends JRouter
{
/**
* Function to convert a route to an internal URI
*
* @param JUri &$url The uri.
*
* @return boolean
*
* @since 1.5
*/
public function parse(&$url)
{
return true;
}

/**
* Function to convert an internal URI to a route
*
* @param string $url The internal URL
*
* @return string The absolute search engine friendly URL
*
* @since 1.5
*/
public function build($url)
{
$url = str_replace('&amp;', '&', $url);

return new JUri($url);


}
}

-1-

You might also like