CoreFiles by mySites.guru
router.php47 lines, 838 bytes, from Joomla_3.10.2-Stable-Full_Package.zip
Raw History Compare with 3.10.1
md5
0c4f661926089a30597bca477e139720
sha1
c9b15315aea224f554a95c14965010fcb4947321
sha256
25851fc2a388085e10d647ea9f5e8de24eb26aa8037b4287b311848ac809c4b4
<?php
/**
 * @package    Joomla.Installation
 *
 * @copyright  (C) 2007 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

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);
	}
}

The same content is in 25 releases, Joomla 3.10.0-alpha2 to 3.10.12. See them all, or every version of this file.