CoreFiles by mySites.guru
router.php47 lines, 949 bytes, from Joomla_1.7.4-Stable-Full_Package.zip
Raw History Compare with 1.7.3
md5
cbfe50f0cb82ddffc93d699f7fe0f3e6
sha1
409e30c2933914813a282c383f633fba633fc904
sha256
d6ff61abe2dc7fa5bc18074f21da7c779d8236a074d77dda54d40e658ca67a0b
<?php
/**
 * @version		$Id: router.php 21909 2011-07-20 16:33:40Z infograf768 $
 * @package		Joomla.Installation
 * @copyright	Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// No direct access
defined('JPATH_BASE') or die;

jimport('joomla.application.router');

/**
 * Class to create and parse routes
 *
 * @package		Joomla.Installation
 * @since		1.5
 */
class JRouterInstallation extends JObject
{
	/**
	 * Function to convert a route to an internal 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 5 releases, Joomla 1.7.1 to 1.7.5. See them all, or every version of this file.